python - run 2 websites in one django project -
first of have found several solutions problem no 1 fits. use django 1.5 + python 3.3 + gunicorn + nginx webserver.
my django project directory like:
fv/ frontend/ static/ templates/ index.html models.py views.py fv/ -- folder logic calculating files stored media/ static/ manage.py settings.py urls.py wsgi.py
now have app homepage
frontend
these 2 apps should standalone website different domains www.homepage.com
, www.frontend.com
. should use same model, because model table share django user model. , every app should have own template files , urls.py.
i've read django sites framework documentation have no idea how redesign project dir , arrange other necessary parts settings.py, urls.py.
i hope me? :)
Comments
Post a Comment