Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
django 1.7+ standalone script
import os
import django
os.environ.setdefault("DJANGO_SETTINGS_MODULE", "myapp.settings")
django.setup()
################################################################################
@wpgeek922

This comment has been minimized.

Copy link

wpgeek922 commented Dec 3, 2015

I like to keep my standalone scripts out of myapp, but when i try to access script in web browser it gives page not found error. How can i fix it?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.