ok, here is the url stuff:
from django.conf.urls.defaults import *
urlpatterns = patterns('contact.views',
url(r'^consultation-request/$', 'consultation_request',
name='contact-consultation-request'),
)
the top is the url.py thats in a folder called contact.
here is the main url.py -
# -*- coding: utf-8 -*-
from django.conf.urls.defaults import *
from ragendja.urlsauto import urlpatterns
from ragendja.auth.urls import urlpatterns as auth_patterns
from django.contrib import admin
from django.views.static import serve
import os
from django.contrib.auth import views as auth_views
#TODO: Make the login with 'next page' not dependent on google auth
(make generic)
from ragendja.auth import views as auth
admin.autodiscover()
handler500 = 'ragendja.views.server_error'
urlpatterns = auth_patterns + patterns('',
('^admin/(.*)', admin.site.root),
(r'^$', 'django.contrib.flatpages.views.flatpage', {'url': '/
index/'}),
url(r'^account/login/?next=(?P<next>.*)/$', auth.google_login,
{'redirect_field_name': 'next'}, name='auth_login'),
url(r'^account/login/$', auth_views.login, name='auth_login2'),
url(r'^account/logout/$', auth_views.logout, {'template_name':
'registration/logged_out.html'}, name='auth_logout'),
(r'^contactprocess/', include('contact.urls')),
(r'^feed_back_process/', include('feed_back.urls')),
(r'^(?P<path>.*)$', serve,
{'document_root': os.path.join(os.path.abspath(os.path.dirname
(__file__)),'static')}),
) + urlpatterns
On Apr 18, 3:41 pm, "R. Gorman" <[email protected]> wrote:
> Your likelihood in resolving this issue would be much higher if you
> include your code (urls.py, form html, etc.)
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Django users" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/django-users?hl=en
-~----------~----~----~----~------~----~------~--~---