I have a django test, on an amazon ec2 instance, I see the "It worked!" page,
i have commented the necessary lines to have access to the admin,
but i cannot see the admin page,
I have to configure properly the urls.py to show the view in my app,
from django.conf.urls.defaults import patterns, include, url
# Uncomment the next two lines to enable the admin:
from django.contrib import admin
admin.autodiscover()
urlpatterns = patterns('',
# Examples:
# url(r'^$', 'micopiloto.views.home', name='home'),
url(r'^$', 'portfolio.views.view', name='home'),
# url(r'^micopiloto/', include('micopiloto.foo.urls')),
# Uncomment the admin/doc line below to enable admin documentation:
# url(r'^admin/doc/', include('django.contrib.admindocs.urls')),
# Uncomment the next line to enable the admin:
url(r'^admin/', include(admin.site.urls)),
)
the view for my app is in: /home/ubuntu/djangoProj/micopiloto/portfolio/views.py
but I have an empty views.py [as i just created the app]
so how do I set the urls.py to connect with my app,
do i need some basic code to see the views.py of my app?
and how to load the admin page?
thanks!
admininINSTALLED_APPS?