Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

change app_name to project_name

  • Loading branch information...
commit 0e0d58bbef984462841c73237fa9199dbbf6af69 1 parent 45fcc8c
Lynn Dylan Hurley authored
8 README.mkd
View
@@ -18,10 +18,10 @@ This project assumes that you want to use the following:
## Project Initialization
With Django 1.4, you can use the new project template feature. From the console:
-`django-admin.py startproject --template=https://github.com/lynndylanhurley/django-base-template/tarball/master --extension=py,mkd app_name`
-Where `app_name` is the name of your app.
+`django-admin.py startproject --template=https://github.com/lynndylanhurley/django-base-template/tarball/master --extension=py,mkd project_name`
+Where `project_name` is the name of your app.
-Otherwise you can just fork this repo and manually change any instances of {{ app_name }} to the name of your app. This variable exists in the following files:
+Otherwise you can just fork this repo and manually change any instances of {{ project_name }} to the name of your app. This variable exists in the following files:
* README.mkd
* environments.py
@@ -31,7 +31,7 @@ Otherwise you can just fork this repo and manually change any instances of {{ ap
#### Remove everything above this line.
---
-# {{ app_name }}
+# {{ project_name }}
## Requirements
This project requires the following:
2  deploy/common_settings.py
View
@@ -156,4 +156,4 @@
PROJECT_ROOT / 'assets',
)
-GRAPPELLI_ADMIN_TITLE = '{{ app_name }}'
+GRAPPELLI_ADMIN_TITLE = '{{ project_name }}'
2  deploy/settings.py
View
@@ -25,7 +25,7 @@
DATABASES = {
'default': {
'ENGINE': 'django.db.backends.postgresql_psycopg2',
- 'NAME': '{{ app_name|slugify }}',
+ 'NAME': '{{ project_name|slugify }}',
'USER': 'vagrant',
'PASSWORD': '',
'HOST': '',
4 environments.py
View
@@ -9,8 +9,8 @@
def common():
env.debug = False
yield
- env.project_name = '{{ app_name|slugify }}'
- env.project_title = '{{ app_name }}'
+ env.project_name = '{{ project_name|slugify }}'
+ env.project_title = '{{ project_name }}'
env.db_name = env.project_name
env.project_root = '/home/%s/sites/%s' % (env.user, env.project_name)
env.python_path = "/home/%s/.virtualenvs/%s" % (env.user, env.project_name)
Please sign in to comment.
Something went wrong with that request. Please try again.