Re: Django 1.8 + jinja2 Encountered unknown tag 'static'

2018-01-23 Thread Seb
2 years later. Still, this did the trick! Thanks. Should update Django 2 docs On Sunday, December 20, 2015 at 7:30:36 AM UTC+8, Jan studený wrote: > > For anyone who has this error, because static is variable it has to be > enclosed with double curly brackets, not with percentage ones. > SOLUTIO

Re: Help with image file upload

2011-09-27 Thread seb
On 27/09/2011 10:57, David wrote: Hello This is my view: @login_required @transaction.commit_on_success def update_person(request): try: person_id = int(request.POST['person_id']) except KeyError: raise Http404 person = Person.objects.select_related().get(pk=per

Dynamic db_table change

2010-11-26 Thread Seb
om/wiki/DynamicModels I have created a factory function that change the db_table from "table_a" to "table_a_[user]" example usage : A_100 = factory(A,'100') #change table_a to table_a_100 it works but I can't use the foreign key a=A_100.objects.get(pk=1) a.b_set.all()

newbie : Django Error Handling

2007-03-21 Thread seb
instance when u do a Models.object.all(), Is there a list somewhere ? (could not find the exceptions in the API ...) Thanks for your help Seb --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users"