How can I make the Django backend (and some views) accessible in a different domain?
Is it done via the Sites Framework?
How can I make the Django backend (and some views) accessible in a different
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Create a copy of
settings.pyand run the admin server with that settings file. Also, create a copy ofurls.py(let’s call itadmin_urls.py). Then, in the copied settings file change this line:To prevent access to admin on the main site, remove admin app from
INSTALLED_APPSinsettings.pyand all references to admin views inurls.py.