Saturday, February 29, 2020

Re: Running django admin separately

I think so. Haven't tested, one way should be be to have have two url.py's, one that includes only the admin URLs and one that includes only your project URLs. Then have two settings modules that look like this:

# main site settings
from .settings import *
ROOT_URLCONF = 'myproject.urls_main'


# admin site settings
from .settings import *
ROOT_URLCONF = 'myproject.urls_admin'

If you want to get even fancier you can also use the sites module support to define two different sites and set the SITE_ID in each setting file too. Although you probably don't need that.

On Sat, Feb 29, 2020 at 6:58 PM Agumba <paul.agumba@gmail.com> wrote:
Hello django users is there a way i can run django-admin separately from the main site like separate instances......any help will be appreciated 

--
You received this message because you are subscribed to the Google Groups "Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/4d497c5e-55dd-4074-b733-c6e6e2d8b09a%40googlegroups.com.

--
You received this message because you are subscribed to the Google Groups "Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/CAD4ANxVHygN9UOfjySfWuAX%3DTbJykpOr_B_aRL_LLvsZpkh6rQ%40mail.gmail.com.

1 comment: