My main aim is to run separate instances of the django.admin and drf API

On Sun, Mar 1, 2020, 04:23 Stephen J. Butler <[email protected]>
wrote:

> 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 <[email protected]> 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 [email protected].
>> To view this discussion on the web visit
>> https://groups.google.com/d/msgid/django-users/4d497c5e-55dd-4074-b733-c6e6e2d8b09a%40googlegroups.com
>> <https://groups.google.com/d/msgid/django-users/4d497c5e-55dd-4074-b733-c6e6e2d8b09a%40googlegroups.com?utm_medium=email&utm_source=footer>
>> .
>>
> --
> 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 [email protected].
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/django-users/CAD4ANxVHygN9UOfjySfWuAX%3DTbJykpOr_B_aRL_LLvsZpkh6rQ%40mail.gmail.com
> <https://groups.google.com/d/msgid/django-users/CAD4ANxVHygN9UOfjySfWuAX%3DTbJykpOr_B_aRL_LLvsZpkh6rQ%40mail.gmail.com?utm_medium=email&utm_source=footer>
> .
>

-- 
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 [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CAMyxNXh70gaDyqxeBVe-%3DKQsb1pv_WCxE59mwbPAVXapFOCkGg%40mail.gmail.com.

Reply via email to