Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
N
nuages
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
etch
nuages
Commits
600c1418
Commit
600c1418
authored
Jun 22, 2010
by
christophe siraut
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
namechange fixes
parent
a94624b8
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
12 additions
and
12 deletions
+12
-12
nuage.sqlite
nuage.sqlite
+0
-0
settings.py
settings.py
+2
-2
sondage/views.py
sondage/views.py
+2
-2
urls.py
urls.py
+8
-8
No files found.
nuage.sqlite
View file @
600c1418
No preview for this file type
settings.py
View file @
600c1418
...
...
@@ -77,7 +77,7 @@ MIDDLEWARE_CLASSES = (
'django.contrib.auth.middleware.AuthenticationMiddleware'
,
)
ROOT_URLCONF
=
'nuage.urls'
ROOT_URLCONF
=
'nuage
s
.urls'
TEMPLATE_DIRS
=
(
# Put strings here, like "/home/html/django_templates" or "C:/www/django/templates".
...
...
@@ -91,7 +91,7 @@ INSTALLED_APPS = (
'django.contrib.contenttypes'
,
'django.contrib.sessions'
,
'django.contrib.sites'
,
'nuage.sondage'
,
'nuage
s
.sondage'
,
)
LOGIN_URL
=
'/user/login/'
...
...
sondage/views.py
View file @
600c1418
...
...
@@ -8,8 +8,8 @@ from django.core.urlresolvers import reverse
from
django.template
import
RequestContext
from
django.forms.formsets
import
formset_factory
from
django.forms.models
import
inlineformset_factory
,
BaseInlineFormSet
from
nuage.sondage.models
import
Poll
,
Choice
,
Vote
,
Bulletin
from
nuage.sondage.forms
import
PollForm
,
ChoiceForm
,
VoteForm
,
BulletinForm
from
nuage
s
.sondage.models
import
Poll
,
Choice
,
Vote
,
Bulletin
from
nuage
s
.sondage.forms
import
PollForm
,
ChoiceForm
,
VoteForm
,
BulletinForm
from
django.views.generic.create_update
import
update_object
from
django.contrib.auth.decorators
import
login_required
#from django.contrib.sites.models import Site
...
...
urls.py
View file @
600c1418
from
django.conf.urls.defaults
import
*
from
django.contrib.auth.views
import
login
,
logout
from
nuage.sondage.models
import
Poll
from
nuage.sondage.forms
import
PollForm
from
nuage
s
.sondage.models
import
Poll
from
nuage
s
.sondage.forms
import
PollForm
# Uncomment the next two lines to enable the admin:
# from django.contrib import admin
...
...
@@ -31,16 +31,16 @@ urlpatterns = patterns('',
(
r
'^$'
,
'django.views.generic.list_detail.object_list'
,
dict
(
info_dict
,
template_name
=
'index.html'
)),
(
r
'^nuages$'
,
'django.views.generic.simple.direct_to_template'
,
{
'template'
:
'nuages.html'
}),
(
r
'^(?P<poll_id>\w{4})/$'
,
'nuage.sondage.views.vote'
),
(
r
'^new/$'
,
'nuage.sondage.views.new'
),
(
r
'^(?P<object_id>\w+)/edit/$'
,
'nuage.sondage.views.secure_update_object'
,
dict
(
poll_dict
,
post_save_redirect
=
'choices/'
)),
(
r
'^(?P<poll_id>\w{4})/$'
,
'nuage
s
.sondage.views.vote'
),
(
r
'^new/$'
,
'nuage
s
.sondage.views.new'
),
(
r
'^(?P<object_id>\w+)/edit/$'
,
'nuage
s
.sondage.views.secure_update_object'
,
dict
(
poll_dict
,
post_save_redirect
=
'choices/'
)),
#(r'^(?P<poll_id>\w+)/edit/$', 'nuage.sondage.views.edit'),
(
r
'^(?P<poll_id>\w+)/edit/choices/$'
,
'nuage.sondage.views.editchoices'
),
(
r
'^(?P<poll_id>\w{4})/vote/$'
,
'nuage.sondage.views.vote'
),
(
r
'^(?P<poll_id>\w+)/edit/choices/$'
,
'nuage
s
.sondage.views.editchoices'
),
(
r
'^(?P<poll_id>\w{4})/vote/$'
,
'nuage
s
.sondage.views.vote'
),
(
r
'^user/login/$'
,
login
),
(
r
'^user/logout/$'
,
logout
,
{
'template_name'
:
'index.html'
}),
(
r
'^user/register'
,
'nuage.sondage.userviews.register'
),
(
r
'^user/register'
,
'nuage
s
.sondage.userviews.register'
),
(
r
'^user/success$'
,
'django.views.generic.simple.direct_to_template'
,
{
'template'
:
'registration/success.html'
}),
(
r
'^i18n/'
,
include
(
'django.conf.urls.i18n'
)),
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment