Skip to content

Commit adc757f

Browse files
committed
Merge branch 'master' of github.com:pythonkc/pythonkc.com
2 parents ed32eb0 + 46b4d1a commit adc757f

File tree

3 files changed

+8
-8
lines changed

3 files changed

+8
-8
lines changed

pythonkc_site/media/screen.css

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
RESET
2+
-----------

pythonkc_site/requirements/project.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,3 +2,4 @@ Django==1.3
22
gondor==1.0b1.post12
33
psycopg2==2.4.1
44
South==0.7.3
5+
git+http://github.com/pythonkc/pythonkc-meetups.git#egg=pythonkc-meetups-git

pythonkc_site/settings.py

Lines changed: 5 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# Django settings for pythonkc_site project.
2-
32
import os
43

4+
55
PROJECT_ROOT = os.path.abspath(os.path.dirname(__file__))
66

77
DEBUG = True
@@ -16,7 +16,7 @@
1616
DATABASES = {
1717
'default': {
1818
'ENGINE': 'django.db.backends.sqlite3', # Add 'postgresql_psycopg2', 'postgresql', 'mysql', 'sqlite3' or 'oracle'.
19-
'NAME': os.path.join(os.path.abspath(os.path.dirname(__file__)), 'pythonkc.sqlite'), # Or path to database file if using sqlite3.
19+
'NAME': os.path.join(PROJECT_ROOT, 'pythonkc.sqlite'), # Or path to database file if using sqlite3.
2020
'USER': '', # Not used with sqlite3.
2121
'PASSWORD': '', # Not used with sqlite3.
2222
'HOST': '', # Set to empty string for localhost. Not used with sqlite3.
@@ -49,18 +49,18 @@
4949

5050
# Absolute filesystem path to the directory that will hold user-uploaded files.
5151
# Example: "/home/media/media.lawrence.com/media/"
52-
MEDIA_ROOT = ''
52+
MEDIA_ROOT = os.path.join(PROJECT_ROOT, 'media'),
5353

5454
# URL that handles the media served from MEDIA_ROOT. Make sure to use a
5555
# trailing slash.
5656
# Examples: "http://media.lawrence.com/media/", "http://example.com/media/"
57-
MEDIA_URL = ''
57+
MEDIA_URL = '/media/'
5858

5959
# Absolute path to the directory static files should be collected to.
6060
# Don't put anything in this directory yourself; store your static files
6161
# in apps' "static/" subdirectories and in STATICFILES_DIRS.
6262
# Example: "/home/media/media.lawrence.com/static/"
63-
STATIC_ROOT = ''
63+
STATIC_ROOT = os.path.join(PROJECT_ROOT, 'static'),
6464

6565
# URL prefix for static files.
6666
# Example: "http://media.lawrence.com/static/"
@@ -108,9 +108,6 @@
108108

109109
TEMPLATE_DIRS = (
110110
os.path.join(PROJECT_ROOT, 'templates'),
111-
# Put strings here, like "/home/html/django_templates" or "C:/www/django/templates".
112-
# Always use forward slashes, even on Windows.
113-
# Don't forget to use absolute paths, not relative paths.
114111
)
115112

116113
INSTALLED_APPS = (

0 commit comments

Comments
 (0)