DoesNotExist at /admin/blog/blog/add/: blog matching query does not exist

2022-09-13 Thread Jaap van Wingerde
_from_db(fields=[field_name]) File "/var/django/liakoster.nl/blog-1/lib/python3.10/site-packages/django/db/models/base.py", line 741, in refresh_from_db db_instance = db_instance_qs.get() File "/var/django/liakoster.nl/blog-1/lib/python3.10/site-packages/django/db/models/query.py&quo

Invalid filter: 'unlocalize' (Django 3.1.7, Python 3.7.3)

2021-03-19 Thread Jaap van Wingerde
"price": "{{ art_artobject.price|unlocalize }}", "priceCurrency": "EUR",{% endif %} ... Am I doing something wrong? -- Jaap van Wingerde e-mail: j...@vanwingerde.nl -- You received this message because you are subscribed to the Google Groups "Django us

Re: creating a website with django

2020-08-29 Thread Jaap van Wingerde
https://www.djangoproject.com/start/ Kamini Shukla schreef op August 28, 2020 9:09:24 AM UTC: >i want to create a website with the help of django. pls some one help >of >that. > >-- >You received this message because you are subscribed to the Google >Groups "Django users" group. >To

Re: Who can help me?

2020-08-23 Thread Jaap van Wingerde
This is the first result with Google: https://stackoverflow.com/questions/55831728/what-is-statreloader-while-running-django Hella thor schreef op August 21, 2020 9:23:22 AM UTC: >Hey guys: > >My python version is 3.7.1 >Django version is 3.1 > >When I started the project > >[image: 9.png] >

Re: How to populate DB from PDF extracted data

2018-03-09 Thread Jaap van Wingerde
Use 'pdftohtml - xml' to convert the pdf in an xml-file and use per line in de xml-file regulair expressions to extract the data. [pdftohtml] https://www.sourceforge.net/projects/pdftohtml/ Op Fri, 9 Mar 2018 00:00:39 -0800 Shazia Nusrat schreef: > Hi, > > I am trying

append language-code tot variable name

2017-05-23 Thread Jaap van Wingerde
In my templates I have variables as {{ artobject.title|safe|capfirst }}. I want the site in more languages.So in changed the model: title changed in title_nl, and I appended title_de, title_en, title_fr. This is more easy for me than po-files. A template must work for all languages,so the

Re: how to deal with not translated strings in html

2015-03-04 Thread Jaap van Wingerde
Op 2015-03-03T17:41:21 UTC schreef Jaap van Wingerde <mailingli...@vanwingerde.nl> in the message , mid:20150303174121.024af...@jaap.custard.shrl.nl the following text. > ../locale/en/LC_MESSAGES/django.po: > > ... > #: template.html:4 > msgid "jaar" > msgs

how to deal with not translated strings in html

2015-03-03 Thread Jaap van Wingerde
ting html: ... yearmaand ... better html: ... yearmaand ... How can i get the better html? -- Jaap van Wingerde e-mail: 1234567...@vanwingerde.nl -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and

Re: unicode problems in admin interface

2014-09-22 Thread Jaap van Wingerde
Op 2014-09-18T13:41:53 UTC schreef Jaap van Wingerde <mailingli...@vanwingerde.nl> in het bericht , ID: <20140918134153.390fc...@jaap.custard.shrl.nl> het interface>volgende. > I have suddenly unicode problems with de admin interface: > > "DjangoUnicodeDecodeError

Re: unicode problems in admin interface

2014-09-20 Thread Jaap van Wingerde
n format_html(u'http://glaskunst.liakoster.nl/media/img/height_80/{2}.jpg"/>', self.id,self.photograph) image.allow.tags = True def __unicode__(self): return self.photograph ..." Coulld it be a bug in Django 1.7? -- Jaap van Wingerde e-mail: 1234567...@vanwingerde.nl signature.asc Description: PGP signature

unicode problems in admin interface

2014-09-18 Thread Jaap van Wingerde
aap@liakoster:/var/django/liakoster.nl/test2$" What is going on? -- Jaap van Wingerde e-mail: 1234567...@vanwingerde.nl signature.asc Description: PGP signature

modification time in Python - Django

2014-03-03 Thread Jaap van Wingerde
r/django/test2/art/templates/art_index.html'))) '2014-03-02T19:03:55Z' >>> quit() jaap@liakoster:~$ ls --full-time /var/django/test2/art/templates/art_index.html -rwxrwx--- 1 lia www-data 2456 2014-03-02 19:16:55.568139590 + /var/django/test2/art/templates/art_index.html jaap@liakoste

Re: /static/ 404

2012-10-09 Thread Jaap van Wingerde
On Tue, 9 Oct 2012 11:33:36 -0400 Gladson SimplĂ­cio Brito wrote: > # coding: utf-8DEBUG = False or True ?TEMPLATE_DEBUG = DEBUG > > > if false, it has to serve files with apache, nginx, etc... > if true, and to operate... "DEBUG = True TEMPLATE_DEBUG = DEBUG" -- You

Re: /static/ 404

2012-10-09 Thread Jaap van Wingerde
On Tue, 9 Oct 2012 16:31:18 +0100 Tom Evans wrote: > Assuming your question is "Why am I getting 404's for static content > on my dev server, even though I set STATIC_URL?", have you included > 'django.contrib.staticfiles' in INSTALLED_APPS? Yes: "INSTALLED_APPS = (

/static/ 404

2012-10-09 Thread Jaap van Wingerde
settings.py: "STATIC_URL = 'http://jaap.custard.shrl.nl:8000/static/' # Additional locations of static files STATICFILES_DIRS = ( # Put strings here, like "/home/html/static" or "C:/www/django/static". # Always use forward slashes, even on Windows. # Don't forget to use absolute