ould take this
> question to a potentially more useful place.
>
> Anyway; I am pretty new to Django but I've been following the tutorials
> and in the Generic Views section here:
> https://docs.djangoproject.com/en/4.0/intro/tutorial04/
>
> I beleive that there is a missi
tutorials but I can't
seem to find a way. If you could help me there I could take this question to a
potentially more useful place.
Anyway; I am pretty new to Django but I've been following the tutorials and in
the Generic Views section here:
https://docs.djangoproject.com/en/4.0/i
Hi I've been searching on how I might contribute to the tutorials but I
can't seem to find a way. If you could help me there I could take this
question to a potentially more useful place.
Anyway; I am pretty new to Django but I've been following the tutorials and
in the Generi
/SamuelNoB Linkedin: https://www.linkedin.com/in/samuel-nogueira-87800b1aa/ - De: Patrick CarraEnviado:sábado, 24 de outubro de 2020 16:53Para: Django usersAssunto: testing class based generic views Can
Can anyone point me towards a tutorial for how to test a CreateView
function?
--
You received this message because you are subscribed to the Google Groups
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to django-users+unsubscr...@googlegr
se request
> what you would like to see specifically. I am at
> https://docs.djangoproject.com/en/2.2/intro/tutorial04/#use-generic-views-less-code-is-better
> in
> the Django tutorial and it seems replacing HTTPRequests with GenericViews
> broke the web server. I followed the instruct
Hi Mike,
On 01/11/2019 09.14, Mike Starr wrote:
Hi! There's a lot of error message to copy and paste so please request
what you would like to see specifically. I am at
https://docs.djangoproject.com/en/2.2/intro/tutorial04/#use-generic-views-less-code-is-better in
the Django tutorial a
Hi! There's a lot of error message to copy and paste so please request what
you would like to see specifically. I am at
https://docs.djangoproject.com/en/2.2/intro/tutorial04/#use-generic-views-less-code-is-better
in
the Django tutorial and it seems replacing HTTPRequests with Generic
, 'category', 'name', 'amount', 'cleared']
template_name_suffix = '_update_form'
class CheckDelete(DeleteView):
model = Check
success_url = reverse_lazy('checkbook-month')
I would like to be able to render the generic views from either functional
Does it help?
return super(SampleUpdateView, self).get(request, project_name, *args,
**kwargs)
W dniu czwartek, 14 września 2017 13:25:06 UTC+2 użytkownik Adrian Jasiński
napisał:
>
>
>
> When I have in my urlpatterns args and kwargs in any of generic views then
> the view
On 13/08/2015 7:20 AM, Bernd Wechner wrote:
Mike,
Thanks. This was just a quick hack ripped off from ModelForm (although
not as quick as I'd have liked as reverse engineering never is and had
to read through ModelForm and get my head around bits) In any case
wouldn't be ready for adding to Djang
Mike,
Thanks. This was just a quick hack ripped off from ModelForm (although not
as quick as I'd have liked as reverse engineering never is and had to read
through ModelForm and get my head around bits) In any case wouldn't be
ready for adding to Django as is, but others could improve it to mee
On 12/08/2015 8:54 PM, Bernd Wechner wrote:
OK, I give up, seriously dismayed that Django doesn't have this built in
already
Well done Bernd! Welcome to open source. Unfortunately, I can't use your
code unless it is part of Django. I have tried implementing my own
improvements in the past but
OK, I give up, seriously dismayed that Django doesn't have this built in
already I did as I threatened to and derived a class as follows:
from django.utils import six
from django.utils.safestring import mark_safe
from django.utils.html import conditional_escape
from django.utils.encoding import
>
> -James
> On Aug 8, 2015 6:31 AM, "Doaa Hassan" >
> wrote:
>
>> Hi all,
>>
>> I am trying to convert poll app introduced on:
>>
>> https://docs.djangoproject.com/en/1.8/intro/tutorial01/
>>
>> to use the generic views system as descr
This has bamboozled me for a while. I Have a wonderful little test app I'm
playing with which lists objects (ListView) and next to each object puts an
edit and view link. Sort of like:
- [view] [edit] Object 1
- [view] [edit] Object 2
- [view] [edit] Object 3
The ListView works like a
; Hi all,
>
> I am trying to convert poll app introduced on:
>
> https://docs.djangoproject.com/en/1.8/intro/tutorial01/
>
> to use the generic views system as described on:
>
> https://docs.djangoproject.com/en/1.8/intro/tutorial04/
>
> However, when I convert the URL
Hi all,
I am trying to convert poll app introduced on:
https://docs.djangoproject.com/en/1.8/intro/tutorial01/
to use the generic views system as described on:
https://docs.djangoproject.com/en/1.8/intro/tutorial04/
However, when I convert the URLconf by opening the polls/urls.py and
the login view, or url
>>> reversing the view where login is required?
>>>
>>> Collin
>>>
>>> On Sunday, November 30, 2014 11:07:42 PM UTC-5, Rootz wrote:
>>>>
>>>> Hi can this work with url reversing namespaced urls?
>>&g
rsing namespaced urls?
>>> thanks
>>>
>>> On Thursday, October 16, 2014 11:54:45 AM UTC-5, Vijay Khemlani wrote:
>>>>
>>>> If you are usign class based generic views you can use the decorators
>>>> in the URL config of your app, for exampl
On Sunday, November 30, 2014 11:07:42 PM UTC-5, Rootz wrote:
>>
>> Hi can this work with url reversing namespaced urls?
>> thanks
>>
>> On Thursday, October 16, 2014 11:54:45 AM UTC-5, Vijay Khemlani wrote:
>>>
>>> If you are usign class based
UTC-5, Rootz wrote:
>>
>> Hi can this work with url reversing namespaced urls?
>> thanks
>>
>> On Thursday, October 16, 2014 11:54:45 AM UTC-5, Vijay Khemlani wrote:
>>>
>>> If you are usign class based generic views you can use the decorator
t;>
>> Hi can this work with url reversing namespaced urls?
>> thanks
>>
>> On Thursday, October 16, 2014 11:54:45 AM UTC-5, Vijay Khemlani wrote:
>>>
>>> If you are usign class based generic views you can use the decorators in
>>> the UR
tober 16, 2014 11:54:45 AM UTC-5, Vijay Khemlani wrote:
>>
>> If you are usign class based generic views you can use the decorators in
>> the URL config of your app, for example
>>
>> urlpatterns = patterns('',
>> (r'^about/', login_re
Hi can this work with url reversing namespaced urls?
thanks
On Thursday, October 16, 2014 11:54:45 AM UTC-5, Vijay Khemlani wrote:
>
> If you are usign class based generic views you can use the decorators in
> the URL config of your app, for example
>
> urlpatterns = patterns(
Thanks.
On Thursday, October 16, 2014 11:54:45 AM UTC-5, Vijay Khemlani wrote:
>
> If you are usign class based generic views you can use the decorators in
> the URL config of your app, for example
>
> urlpatterns = patterns('',
> (r'^about/
If you are usign class based generic views you can use the decorators in
the URL config of your app, for example
urlpatterns = patterns('',
(r'^about/', login_required(AboutView.as_view())),
)
On Thu, Oct 16, 2014 at 12:49 PM, Rootz wrote:
> Can I use bo
Can I use both Generic View and the Django.contrib.auth features (such as
login_required decorator and other auth interface tool)? And if it is not
possible to integrate auth into Generic Views then can you recommend
alternative way of making the two work together? Adding to this I am using
;>> I suggest typing:
>>> - manage.py shell
>>> - from polls import views
>>> - dir(views)
>>>
>>> What output do you get? i.e, nspect views like the regular python module
>>> that it is.
>>>
>>>
>>> On Sat, Aug 30,
ping:
>> - manage.py shell
>> - from polls import views
>> - dir(views)
>>
>> What output do you get? i.e, nspect views like the regular python module
>> that it is.
>>
>>
>> On Sat, Aug 30, 2014 at 6:41 PM, Pitchblack > > wrote:
>>
>&
views
> - dir(views)
>
> What output do you get? i.e, nspect views like the regular python module
> that it is.
>
>
> On Sat, Aug 30, 2014 at 6:41 PM, Pitchblack
> wrote:
>
>> I need to use Jython instead of Python, I found that jython2.7b2 works
>> with DJango
; with DJango 1.7. So, I am stuck using the beta version. I am trying to
> follow the current Django tutorial and I have ran into a problem. I am not
> sure if I am using generic views properly. When I try to change the urls.py
> (polls) file. I see that pydev complains that
I need to use Jython instead of Python, I found that jython2.7b2 works with
DJango 1.7. So, I am stuck using the beta version. I am trying to follow
the current Django tutorial and I have ran into a problem. I am not sure if
I am using generic views properly. When I try to change the urls.py
> K
>
>
> On Tuesday, May 27, 2014 2:43:03 PM UTC-7, Howard Edson wrote:
>>
>> I am working on a simple "to do list" app in django (two models: List and
>> Item). Trying to learn and make use of class-based generic views. I have
>> the following three
(self):
q = self.model.lists.for_user(self.request.user)
return q
K
On Tuesday, May 27, 2014 2:43:03 PM UTC-7, Howard Edson wrote:
>
> I am working on a simple "to do list" app in django (two models: List and
> Item). Trying to learn and make use of class-based generic
I am working on a simple "to do list" app in django (two models: List and
Item). Trying to learn and make use of class-based generic views. I have
the following three display views working, but am requesting a quick code
review to see if there's anything I can do to im
#urls.py
from .models import Entry
from django.conf.urls import patterns, url
from django.views.generic.dates import (ArchiveIndexView,
YearArchiveView,
MonthArchiveView,
DayArchi
Hello, everyone!
I've released 1.0 beta of the app:
https://github.com/05bit/django-smarter
It helps with adding generic views. Actually, I've build this app for
one of my projects, which is 80% based on generic views, and it seemed
very useful for that particular case :)
As my proje
Sorry, I guess I should have looked a bit harder before posting this
question,
I've figured it out.
Hopefully this will be of help to someone else.
the discussion here:
http://stackoverflow.com/questions/8925434/django-class-based-generic-views-url-variable-passing
answers my question.
Th
I'm new to using generic views and the genericness is obviously powerful,
but I'm wondering how far it goes. If I have a model and want to display it
as a list,
I can use a generic view and even specify the query set it displays for a
given view,
but what if I want to constrain the
ngo.views.generic.list_detail',
>> url(r'^$','object_list', queryset, name="adcalls"),
>> url(r'^(?P\d+)/detail/$', 'object_detail', queryset,
>> name="detail"),
>> )
>>
>>
>> templ
27;^(?P\d+)/detail/$', 'object_detail', queryset,
> name="detail"),
> )
>
>
> template:
>
> EDIT TEMPLATE
> {% load url from future %}
> {% csrf_token %}
> {{ form.as_p }}
>
>
>
> Back to adcall list
>
>
> Error:
> NoRe
gt; {{ form.as_p }}
>
>
>
> Back to adcall list
>
>
> Error:
> NoReverseMatch at /testadcall/1/detail/
>
> Reverse for 'adcalls' with arguments '()' and keyword arguments '{}' not
> found.
>
>
>
>
>
> On Th
e for 'adcalls' with arguments '()' and keyword arguments '{}' not found.
On Thu, Jan 24, 2013 at 2:53 AM, wrote:
> On 24/01/2013 10:39 AM, amy.cerr...@cbsinteractive.com wrote:
>
>> I've been trying to understand how to use generic views. I
On 24/01/2013 10:39 AM, amy.cerr...@cbsinteractive.com wrote:
I've been trying to understand how to use generic views. I've
followed some tutorials, and read through Django docs, but I can't get
the url function to work in my templates.
I get the error
NoReverseMatch at /test
(reply inline)
On Thu, Jan 24, 2013 at 5:09 AM, wrote:
> I've been trying to understand how to use generic views. I've followed some
> tutorials, and read through Django docs, but I can't get the url function to
> work in my templates.
>
> I get the error
&
try to check testaddcall/1/ please
Many thanks,
Serge
+380 636150445
skype: skhohlov
2013/1/24 :
> I've been trying to understand how to use generic views. I've followed some
> tutorials, and read through Django docs, but I can't get the url function to
> work in
I've been trying to understand how to use generic views. I've followed
some tutorials, and read through Django docs, but I can't get the url
function to work in my templates.
I get the error
NoReverseMatch at /testadcall/
Reverse for 'detail' with arguments
I have had to reboot my VM so it recognizes new files, that could have been
your problem?
--
You received this message because you are subscribed to the Google Groups
"Django users" group.
To view this discussion on the web visit
https://groups.google.com/d/msg/django-users/-/Q3NRvTo_Jr0J.
To
well, for starters, you won't magically get "on keyup" behavior by
adding something on your backend, you'll need to use ajax for this,
and, depending on your expected number of elements, it might be better
to send everything and do any filtering on the client side (if you're
handling, say, up to a
This is a general question.
Im am using generic views to display all objects in a model. This is
working great.
However, i want to add text field widget to filter the objects onkeyup.
That is, I want the text field to re-render the generic view after applying
the text filter in the queryset
On 31-7-2012 22:45, Lachlan Musicman wrote:
> Yes, I was doing that originally (when there was no Compensation objects),
> but I was struggling with only rendering when a set existed - for example,
> in my person_detail.html I was rendering from the wrong direction - via the
> non-Person object vi
On Wed, Aug 1, 2012 at 8:45 AM, Lachlan Musicman wrote:
> On Wed, Aug 1, 2012 at 12:43 AM, Melvyn Sopacua wrote:
>
>> On 31-7-2012 6:17, Lachlan Musicman wrote:
>>
>> > I have Person, Certificate, Job and Compensation objects. The last three
>> > all
>> > have an FK (or M2M) back to a (or some) P
t_object().compensation_set.all()
>
> Required reading:
> https://docs.djangoproject.com/en/1.4/ref/models/relations/
>
> Also, skipping the tutorial is not recommended:
> <
> https://docs.djangoproject.com/en/1.4/intro/tutorial03/#use-the-template-system
> >
>
I di
On Tue, Jul 31, 2012 at 11:15 PM, Karl Sutt wrote:
> So, in conclusion, Lachlan, you would want to do something like:
>
> def get_context_data(self,**kwargs):
>> #Call the base implementation first to get a context
>> context = super(PersonDetailView, self).get_context_data(**kwa
lt;https://docs.djangoproject.com/en/1.4/intro/tutorial03/#use-the-template-system>
> Of course, the other thing that I can't help but thinking is that at this
> point, the non-generic-view method of urls/views might be a simpler way to
> go. While Generic Views are quite versatile,
nked to the person - how can I filter by these?
>> I've tried
>> .filter(self.get_id)
>> .filter(self.request.get_id)
>> .filter(self.person.get_id)
>> .filter(self.request.person.**get_id)
>> .filter(applicants__get_id__**exact=self.get_id) (in the case of
>
f.get_id) (in the case of Vacancy) etc
>
> How do I filter by the person object that is already in the context?
> I know the answer is simple - I should wait until tomorrow when my brain
> is
> fresher, but I want to finish this off tonight if possible.
>
> Of course, the other thin
s
fresher, but I want to finish this off tonight if possible.
Of course, the other thing that I can't help but thinking is that at this
point, the non-generic-view method of urls/views might be a simpler way to
go. While Generic Views are quite versatile, is there a point at which
they are conside
Sometimes the browser cache is making trouble too. Especially with Firefox
I occasionally have this kind of problems. Clear the browser cache, or test
with a different browser mostly helps.
--
You received this message because you are subscribed to the Google Groups
"Django users" group.
To vi
I'm glad.
Not very prone to randomness, actually. Make sure the web server is restarting
after your changes, and that the browser cache is not lying to you.
Also, if you are changing module (file) names, better delete the .pyc files.
Cheers,
Carlos Palol
On 23 Jul 2012, at 16:11, Ri
Oddly, when i started up the server this morning i could now see the polls
correctly, while not having changed my code, by accessing
http://127.0.0.1:8000/polls. Don't know if Django is prone to such
randomness but am happy that it works now. Tested everything, added a view
so that http://127.0
ials to get up to speed. These were helpful and got me on my feet but
>> while finishing up the tutorial i hit a major snag. While everything was
>> working properly using custom views, i can't seem to make my app load the
>> correct templates after switching to generi
can't seem to make my app load the
> correct templates after switching to generic views.
>
> Here's the code:
>
> #urls.py
> from django.conf.urls import patterns, include, url
> from django.views.generic import DetailView, ListView
> from polls.models import
>
> url(r'^$',
> ListView.as_view(
> queryset=Poll.objects.order_by('-pub_date')[:5],
> context_object_name='latest_poll_list',
> template_name='polls/index.html')),
>
>
Here you are setting template_name='polls/index.html'
>
> TemplateDoesNotExis
everything was
> working properly using custom views, i can't seem to make my app load the
> correct templates after switching to generic views.
>
> Here's the code:
>
> #urls.py
> from django.conf.urls import patterns, include, url
> from django.views.generic import Deta
p load the
correct templates after switching to generic views.
Here's the code:
#urls.py
from django.conf.urls import patterns, include, url
from django.views.generic import DetailView, ListView
from polls.models import Poll
urlpatterns = patterns('',
url(r'
t shortcuts
function like render or render_to_response cause RequestContext
instance is updated with supplied context dictionary inside
render_to_string function as 'context_instance.update(dictionary)'.
But if I use class based generic views their render_to_response method
behaves
Subject: Re: Generic views create_object and prefill form data?
To: Django users
Solved it by migrating to the class based generic views, then fed
initial form data to the constructor of the form by overloading
get_initial on the view class.
Paul
--
You received this message because you are
Solved it by migrating to the class based generic views, then fed
initial form data to the constructor of the form by overloading
get_initial on the view class.
Paul
--
You received this message because you are subscribed to the Google Groups
"Django users" group.
To post to this g
I have a model like this:
class Website(models.Model):
user = models.ForeignKey(User)
name = models.CharField(unique=True, max_length=32)
And use a generic view to create new items:
def website_create(request):
return create_update.create_object(
request = request,
fo
There is another way: Class Based View decorators:
http://djangosnippets.org/snippets/2668/
--
You received this message because you are subscribed to the Google Groups
"Django users" group.
To post to this group, send email to django-users@googlegroups.com.
To unsubscribe from this group, send
From: Lachlan Musicman
Sent: Sunday, May 06, 2012 6:57 PM
To: Django users
Subject: Generic Views with flair?
I've happily worked out how to work @login_required for entries in
views.py, but since the latest tutorial (which I followed) recommends
moving to the Generic Views my code i
I've happily worked out how to work @login_required for entries in
views.py, but since the latest tutorial (which I followed) recommends
moving to the Generic Views my code is now like this:
urls.py
...
url(r'^people/$',
ListView.as_view(
HI,
i understand why need to use generic views after i code some of my function
like showing list of data, and the view is the same and i end up copy paste
it , not type it (smarter huh?) , just change my db object and pass to my
template.
well , generic view is come in the rescue and we can
As I understand you would like to send some values to the templates ?
Are you eould like to check if user is authenticated ?
I 've understand near to nothing from your last message.
2012/4/5 Matheus Ashton :
> Ok, Thanks for the advices :) but I still have the original problem, when i
> access t
Ok, Thanks for the advices :) but I still have the original problem, when i
access the HomeView the template is rendered with a render_to_response
view, with a simple Context object and not a RequestContext object, because
of that I do not have the authenticated user data in my template...
2012/4/
I use generic views - either function or class based - for the common
functionality in my apps. As Serge mentioned, a list works pretty
much the same in every application, so I just provide a few parameters
to a generic view. More complicated forms still require custom code.
On Apr 3, 1:07 am
Sound good!
Usually project is not so simple (only url.py + settings.py)
2012/4/4 Javier Guerra Giraldez :
> On Wed, Apr 4, 2012 at 4:14 AM, Sergiy Khohlov wrote:
>> As result your views.py should be :
>>
>> from django.views.generic import TemplateView
>> # Create your views here.
>> class Hom
On Wed, Apr 4, 2012 at 4:14 AM, Sergiy Khohlov wrote:
> As result your views.py should be :
>
> from django.views.generic import TemplateView
> # Create your views here.
> class HomeView(TemplateView):
> template_name='home.html'
>
> Only three lines of the code !
> You dont need more!
if i
= value
>
> def __str__(self):
> return repr(self.value)
>
> class InvalidLoginException(Exception):
> def __init__(self, value):
> self.value = value
>
> def __str__(self):
> return repr(self.value)
>
>
> Thanks again :)
>
> 2012/4/3 S
(self.value)
class InvalidLoginException(Exception):
def __init__(self, value):
self.value = value
def __str__(self):
return repr(self.value)
Thanks again :)
2012/4/3 Sergiy Khohlov
> Please provide your urls.py and your view which is used for this
>
> 2012/4/3
Please provide your urls.py and your view which is used for this
2012/4/3 Matheus Ashton :
> Hello Everybody,
>
> I'm having a problem using the django.contrib.auth app and class based
> generic views in Django 1.3 / 1.4:
>
> After submitting the login form, my view
Generic views helps to avoid writting some part of the trivial code.
For example :
you are writing a shop with goods and a lot of the pages contains
list of the items. You should about sorting orders, page selecting
etc. If you are using generic views then you might not spend time at
this
Good evening,
I just finished the Django 1.4 Tutorial, and I really don't understand
the point of Generic Views in Django? As far as I can see, we wrote
more code than before, and what other example would make the Generic
Views better than normal views?
Thanks for the clarifications!
--
Hello Everybody,
I'm having a problem using the django.contrib.auth app and class based
generic views in Django 1.3 / 1.4:
After submitting the login form, my view receives the post data and tries
to authenticate the user and then redirect to a success page. Ok nothing
new..
The probl
neme it self.object but is a good practice,
is how other class-based generic views work
self.object is None because you are usin a CreateView, so there is no
object to work with until you save the form and get the corresponding
instance.
--
You received this message because you are subscrib
you made my day, working exactly like expected. :-)
thanks a lot
--
You received this message because you are subscribed to the Google Groups
"Django users" group.
To view this discussion on the web visit
https://groups.google.com/d/msg/django-users/-/RUSugDsY9K0J.
To post to this group, send
On 11/01/12 20:54, Juergen Schackmann wrote:
if is use this code, as proposed by russ:
def form_valid(self, form):
self.object.user = ... (something meaningful.. e.g.,
self.request.user)
return super(CreateCampaignView, self).form_valid(form)
i get the error 'NoneType' obje
I am trying to do the same as described in previous example:
I have a model with a foreign key field to User and in the view I want to
populate the the field from request.user.
And when doing it exactly the way as Russ proposed, I get the described
error.
--
You received this message because
What are you triying to achieve?
2012/1/12 Juergen Schackmann :
> can really no one help? i am really stuck here at the moment
>
> --
> You received this message because you are subscribed to the Google Groups
> "Django users" group.
> To view this discussion on the web visit
> https://groups.goog
can really no one help? i am really stuck here at the moment
--
You received this message because you are subscribed to the Google Groups
"Django users" group.
To view this discussion on the web visit
https://groups.google.com/d/msg/django-users/-/RYLQqxJE7HYJ.
To post to this group, send email
if is use this code, as proposed by russ:
def form_valid(self, form):
self.object.user = ... (something meaningful.. e.g.,
self.request.user)
return super(CreateCampaignView, self).form_valid(form)
i get the error 'NoneType' object has no attribute 'user'. and actually, by
lo
12/23 郁夫
> hi, I use a form class in Generic views 'list_detail.object_list' para
> 'extra_context '
>
>
> form
>
> > class DevSrcForm(forms.Form):
> > f_eqno = forms.CharField(label='编号')
> > f_eqclass =
> forms.ChoiceF
hi, I use a form class in Generic views 'list_detail.object_list' para
'extra_context '
form
> class DevSrcForm(forms.Form):
> f_eqno = forms.CharField(label='编号')
> f_eqclass =
forms.ChoiceField(choices=(),widget=forms.Select(attrs={}),label=
I use the following code that I got from a django snippet, which works
great if you want to have radio buttons with different types of fields
associated with them
from django import forms
from django.utils.encoding import for
On 13-10-11 23:57, Andriyko wrote:
class Article(models.Model):
..
# with django 1.2 was
@models.permalink
def get_absolute_url(self):
return ('article_detail', (), { 'year':
self.pub_date.strftime("%Y"),
'month':
self
10 {% endfor %}
11
12 {% endblock %}
13 {% block column2 %}Last article here{% endblock %}
Could you please give an example about how to use get_absolute_url
with class based generic views?
On Oct 14, 1:31 pm, Fabrizio Mancini wrote:
> On 13 October 2011 23:57, An
S,
Y" }}
9
10 {% endfor %}
11
12 {% endblock %}
13 {% block column2 %}Last article here{% endblock %}
Could you please give an example about how to use get_absolute_url
with class based generic views?
On Oct 14, 1:31 pm, Fabrizio Mancini wrote:
> On 13 October 201
On 13 October 2011 23:57, Andriyko wrote:
> urlpatterns = patterns('django.views.generic.dates',
> (r'^(?P\d{4})/v/(?P\d{2})/(?P[-\w]+)/
> $', DateDetailView.as_view(template_name='blog/article_detail.html',
> **entry_info_dict)),
> )
>
Hi,
You are using
(?P\w{3})
but in get_absolute_url you are
1 - 100 of 794 matches
Mail list logo