Is there a simple way to write the site root as a variable clientside

3 views
Skip to first unread message

Jason

unread,
Feb 4, 2012, 4:13:35 PM2/4/12
to django...@googlegroups.com
Hi there,

Is there a simple way to write the site root as a variable clientside? i.e. if I'm running locally the site root var with appear clientside as http://localhost:1010 however if I deploy the root will be http://www.mysite.com?

Cheers,
J

Denis Darii

unread,
Feb 4, 2012, 4:59:33 PM2/4/12
to django...@googlegroups.com
I'm not sure I fully understand your questions, but I think you need to know more about the stupend "sites" framework: https://docs.djangoproject.com/en/dev/ref/contrib/sites/

--
You received this message because you are subscribed to the Google Groups "Django users" group.
To view this discussion on the web visit https://groups.google.com/d/msg/django-users/-/lDnCch_r3lAJ.
To post to this group, send email to django...@googlegroups.com.
To unsubscribe from this group, send email to django-users...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/django-users?hl=en.



--
This e-mail and any file transmitted with it is intended only for the person or entity to which is addressed and may contain information that is privileged, confidential or otherwise protected from disclosure. Copying, dissemination or use of this e-mail or the information herein by anyone other than the intended recipient is prohibited. If you are not the intended recipient, please notify the sender immediately by return e-mail, delete this communication and destroy all copies.
Reply all
Reply to author
Forward
0 new messages