Created
April 15, 2014 04:21
-
-
Save tkrajina/10701881 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import sys | |
from django.conf import settings | |
from django.conf.urls import patterns | |
from django.http import HttpResponse | |
from django.core.management import execute_from_command_line | |
settings.configure( | |
DEBUG=True, | |
SECRET_KEY='trla_baba_lan', | |
ROOT_URLCONF=sys.modules[__name__], | |
) | |
def index(request): | |
return HttpResponse('Hello world') | |
urlpatterns = patterns('', (r'^$', index), ) | |
if __name__ == '__main__': | |
execute_from_command_line(sys.argv) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment