google-code-export / django-hotclub

Automatically exported from code.google.com/p/django-hotclub
MIT License
0 stars 0 forks source link

Eliminate harcoded project_name #168

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
In order to make it easier to just copy a project and start customizing it
it would be good to eliminate the hard coding of the project name
everywhere it is possible.

Here are the current places where the project name is hardcoded:

== On file names ==
deploy/complete_project.wsgi

== On the code ==
./deploy/complete_project.wsgi:1:# complete_project.wsgi is configured to
live in projects/complete_project/deploy.
./deploy/complete_project.wsgi:16:os.environ["DJANGO_SETTINGS_MODULE"] =
"complete_project.settings"
./deploy/complete_project.fcgi:1:# complete_project.fcgi is configured to
live in projects/complete_project/deploy.
./deploy/complete_project.fcgi:12:os.environ["DJANGO_SETTINGS_MODULE"] =
"complete_project.settings"
./settings.py:87:ROOT_URLCONF = 'complete_project.urls'

== Analisys ==
1. complete_project.wsgi: This one is easy, just change it to project.wsgi

2. ROOT_URLCONF: It may or not be possible, the following works but I am
not sure what problems it may cause:
ROOT_URLCONF='urls'

3. os.environ["DJANGO_SETTINGS_MODULE"] = "complete_project.settings"
This one is a bit harder, I have no idea at the moment

Original issue reported on code.google.com by ingenier...@gmail.com on 31 Jan 2009 at 6:46

GoogleCodeExporter commented 9 years ago
I have succesfully deployed a project with mod_wsgi on a virtualenv using
ROOT_URLCONF='urls'
and
os.environ["DJANGO_SETTINGS_MODULE"] = "settings"

using this directive in mod_wsgi:

WSGIDaemonProcess project user=ingenieroariel group=ingenieroariel threads=1
processes=25 python-path=/path/to/virtualenv/lib/python2.5/site-packages

Original comment by ingenier...@gmail.com on 31 Jan 2009 at 5:38

GoogleCodeExporter commented 9 years ago
We have a pinax_clone_project.py file found in the bin/ directory that clones 
projects and adjusts the project 
name. That is the recommended way of using Pinax at this point. You might want 
to open an issue asking for us 
to document it :)

Original comment by bros...@gmail.com on 31 Jan 2009 at 9:37