NoReverseMatch at /app/

2013-05-09 Thread Carlos Aboim
I am getting a strange error on my humble opinion.. *Why am I getting this error?* Reverse for 'registo.detail' with arguments '(1,)' and keyword arguments '{}' not found. *my views:* from django.views.generic.edit import CreateView, UpdateView, DeleteView from django.shortcuts import

add and remove instance keeping the log

2013-05-08 Thread Carlos Aboim
Hi Imagine something like: def Model_A(models.Model): number = models.IntegerField() date = models.DateField() Add an instance of the Model_A Delete an instance of the Model_A Add other instance of the Model_A Delete other instance of the Model_A Then when I do a query on database I

Re: django 1.5 not getting css

2013-04-21 Thread Carlos Aboim
ok I understand that, but I am using the development server. any other clues? thanks Domingo, 21 de Abril de 2013 17:44:46 UTC+1, Rainy escreveu: > > > > On Sunday, April 21, 2013 11:18:22 AM UTC-4, Carlos Aboim wrote: >> >> Hi everyone. >> >> Anybody can tell

css for flatpages

2013-04-21 Thread Carlos Aboim
Hi tell me, where should live css files for flatpages, these need a special folder for server to find them as for apps for example? thank you! -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and stop receiving

django 1.5 not getting css

2013-04-21 Thread Carlos Aboim
Hi everyone. Anybody can tell me why I can get css on my flatpage /home/ ? http://dpaste.com/hold/1066757/ -> this is the html of the page http://dpaste.com/hold/1067747/ ---> this is the css styles http://dpaste.com/hold/1066760/ -->settings.py

Re: generic view 'create_object' inssue

2012-04-25 Thread Carlos Aboim
No answers yet? Can anyone help me?! Thank you Quarta-feira, 25 de Abril de 2012 8:08:24 UTC-3, Carlos Aboim escreveu: > > I fellows > I am getting a strange behavior from a simple generic view > > The problem is that I can not pass the data in the form to introducing

generic view 'create_object' inssue

2012-04-25 Thread Carlos Aboim
I fellows I am getting a strange behavior from a simple generic view The problem is that I can not pass the data in the form to introducing a new object in the database. Then the urls.py file > http://dpaste.com/hold/732643/ The html form is this > http://dpaste.com/hold/732646/ when

Pagination import error

2011-06-20 Thread Carlos Aboim
Hi there, I am getting this error on my code execution: Request Method: GET Request URL: http://127.0.0.1:8000/admin Django Version: 1.3 Exception Type: ImportError Exception Value: cannot import name Paginator Exception Location: /Library/Frameworks/Python. framework/Versions/2.7/

models don't show in tamplate

2010-12-03 Thread Carlos Aboim
Hi guys, Is there a reason for my models don't show up in my template? my urls on app folder: http://dpaste.com/hold/282583/ my template: http://dpaste.com/hold/282586/ I can access through shell to models instaces, Any help whould be apreciated thank you Aboim -- You received this message

Re: dict objects are unhashable

2010-12-02 Thread Carlos Aboim
/ template http://dpaste.com/hold/282242/ Full traceback http://dpaste.com/hold/282244/ and that's the code, Hope I have not forgotten anything I you could help me thank you Aboim On Dec 2, 2:50 pm, Tom Evans <tevans...@googlemail.com> wrote: > On Thu, Dec 2, 2010 at 2:42 PM, Carlos A

Re: dict objects are unhashable

2010-12-02 Thread Carlos Aboim
get it, can you help me? thanks Aboim On Dec 2, 2:23 pm, Tom Evans <tevans...@googlemail.com> wrote: > On Thu, Dec 2, 2010 at 2:18 PM, Carlos Aboim <abo...@gmail.com> wrote: > > Hi guys (and gals), > > Why I am getting this error? > > > Caught TypeError while re

dict objects are unhashable

2010-12-02 Thread Carlos Aboim
Hi guys (and gals), Why I am getting this error? Caught TypeError while rendering: dict objects are unhashable I am using a generic view (object_list) to render my template. But I guess I am not passing all the data correctly. Could you show me the correct direction? my urls: info_dict = {

missing object in object_list generic view

2010-11-30 Thread Carlos Aboim
It's very strange, got this: urls info_dict = { 'Queryset': Obra.objects.all (), } (r'index / $ ',' django.views.generic.list_detail.object_list ', info_dict, dict (name = "obras_index", template_object_name = 'obras', paginate_by = 5)), template [...] {% For book in the works%}

generic views template problem

2010-11-29 Thread Carlos Aboim
Guys, Someone can tell me what is happening with my generic views? I have the templates in my application folder 'templates' in the root my project. This folder is referenced in settings such as: TEMPLATE_DIRS = ( os.path.join (PROJECT_ROOT_PATH, 'templates') ) and I am calling a generic