JSONField() ordering and removing latest

2020-01-30 Thread wagner
Hello together, i have the following problem. I need to save different versions of an article in a json object: { "1580388458.2877874": { "title": "Erster Artikel", "text_block_with_image": [{"text": "Super Text der einen weiterhilft", "image": "http://test.de/test.jpg"}] }, "1580388556.64622

Password reset token - get error for expired token

2020-01-22 Thread wagner
Hello together, with PASSWORD_RESET_TIMEOUT_DAYS I can manage the days till the password reset token will expire. After that the page will just reload, when you try to set a new password. Is it possible to show an error message then? Is there a workaround? Thank you, Danny -- You received this

Password reset token expired - get an error message

2020-01-22 Thread wagner
Hello together, i found out that i can set a PASSWORD_RESET_TIMEOUT_DAYS variable in settings. This worked for me. After one day the token is expired and when i try to set a new password, the page does a reload. So nothing happens. This is correct. Is there a good way / workaround to get an erro

Re: Long-term support (LTS)

2014-09-04 Thread Philippe O. Wagner
Thanks Collin! Am Donnerstag, 4. September 2014 19:47:08 UTC+2 schrieb Collin Anderson: > > It hasn't been decided yet, and it's not necessarily 1.7. See the thread > on django-developers. > https://groups.google.com/d/topic/django-developers/KweKHgdIiz0/discussion > -- You received this messag

Long-term support (LTS)

2014-09-04 Thread Philippe O. Wagner
Hi all, Django 1.4 is the current Long-term support (LTS) release that lasts until end of March 2015. I am curious which is the next LTS release? Is it Django 1.7? Regards, Philippe -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsu

Django management call_command

2013-03-24 Thread Felix Wagner
Hello, I wrote a test management Command: def start_daemon(): pidfile_rule = "/tmp/ihe_test.pid" p = str(os.getpid()) file(pidfile_rule, 'w').write(p) while True: print "Hello" sleep(10) class Command(BaseCommand): help = 'Starts or stops the daemons' opti

Python inside Django

2013-03-23 Thread Felix Wagner
Hello, currently I am writing an application that will run a daemon. However I am stuck: What I have so far: created a project called "ihe", with an app called "devices". Inside devices there is "admin.py", "forms.py", "__init__.py", "models.py", "urls.py", "views.py". There are also several

Re: ManyToManyField is this right?

2012-06-27 Thread David Wagner
On Wed, Jun 27, 2012 at 5:27 PM, Thomas Lockhart wrote: > On 6/27/12 11:48 AM, David Wagner wrote: > > Looking at that I think I may need to add a foreignkey to cert_types > relating to person since a person can have multiple certification types > (NRA Instructor, CCL Instructor, etc

Re: ManyToManyField is this right?

2012-06-27 Thread David Wagner
n Wed, Jun 27, 2012 at 3:31 PM, Dennis Lee Bieber wrote: > On Wed, 27 Jun 2012 11:48:22 -0700, David Wagner > declaimed the following in gmane.comp.python.django.user: > > > Looking at that I think I may need to add a foreignkey to cert_types > > relating to person s

Re: ManyToManyField is this right?

2012-06-27 Thread David Wagner
Looking at that I think I may need to add a foreignkey to cert_types relating to person since a person can have multiple certification types (NRA Instructor, CCL Instructor, etc). On Wed, Jun 27, 2012 at 11:40 AM, David Wagner wrote: > i think I may just be over thinking this. The last tim

Re: ManyToManyField is this right?

2012-06-27 Thread David Wagner
translation. On Wed, Jun 27, 2012 at 10:55 AM, Dennis Lee Bieber wrote: > On Wed, 27 Jun 2012 08:02:37 -0700, David Wagner > declaimed the following in gmane.comp.python.django.user: > > > > > class NRA_Certs(models.Model): > > CRSO = models.BooleanField(blank=True,

Re: ManyToManyField is this right?

2012-06-27 Thread David Wagner
e > > class License(models.Model): > name = models.CharField(max_length=255) > expiration = models.DateField(blank=True, null=True) > details = models.TextField() > > With something like this, the User could have multiple licenses like: > Concealed Carry 5/10/2015 an

ManyToManyField is this right?

2012-06-27 Thread David Wagner
I'm a self taught programmer who hasn't done much of anything for years so please forgive me if this question is naive. I have a hard time sometimes understanding some of the lingo used by trained programmers. With that said, I'm having trouble wrapping my brain around the ManyToMany and Many-T

Django + Ajax/Javascript

2011-11-02 Thread Felix Wagner
Hi, I have the following model layout: class A(models.model): options = models.ManyToManyField(OptionSet, blank=True, null=True) values = models.ManyToManyField(Value, blank=True, null=True) class OptionSet(models.model): name = models.TextField(unique=True) values = models.ManyT

Re: Question about QuerySet and Pagination

2011-09-29 Thread Felix Wagner
Thank you very much for your help On Sep 29, 4:25 pm, Tom Evans wrote: > On Thu, Sep 29, 2011 at 3:16 PM, Felix Wagner > wrote: > > Ok, so now i have: > > .. > >             > ... > > Now if i click next page I get an empty page because: > >http:/

Re: Question about QuerySet and Pagination

2011-09-29 Thread Felix Wagner
url entry and do i have to give the poaginator the query or do I have to save the query somewhere? Also thank you for your help. On Sep 29, 3:51 pm, Tom Evans wrote: > On Thu, Sep 29, 2011 at 8:36 AM, Felix Wagner > wrote: > > Hello, > > > I'm curre

Question about QuerySet and Pagination

2011-09-29 Thread Felix Wagner
Hello, I'm currently trying to paginate my results from a search query. views.py: def search(request): query = request.GET.get('q', '') if query: qset = ( Q(NAME__icontains=query) ) results = Thin_Client.objects.filter(qset).distinct() else:

Re: Possible interest in a webcast/presentation about Django site with 40mil+ rows of data??

2011-06-29 Thread Wagner Vaz
Please, count me in. On Jun 22, 2011 10:15 AM, "Cal Leeming [Simplicity Media Ltd]" < cal.leem...@simplicitymedialtd.co.uk> wrote: > Hi all, > > Some of you may have noticed, in the last few months I've done quite a few > posts/snippets about handling large data sets in Django. At the end of this >

Re: Having some problems with admin css and such

2011-01-23 Thread Wes Wagner
Figured it out... STATICFILES_DIRS = ( STATIC_ROOT,) Had to add my static root directory to the static files dir... Am I doing something kludgy or is the current documentation revision in the SVN wrong? -Wes On Jan 23, 10:32 am, Wes Wagner wrote: > I just started building a new app in

Having some problems with admin css and such

2011-01-23 Thread Wes Wagner
ny of them under runserver. (not found) Thus admin runs without any css or graphics Settings: MEDIA_ROOT = '' MEDIA_URL = '' STATIC_ROOT = "C:/Users/Wes Wagner/PycharmProjects/APP/static/" STATIC_URL = '/static/' ADMIN_MEDIA_PRE

General question about NOT EXISTS...

2010-12-06 Thread Wes Wagner
of a sql where not exists clause. Is there a way to do this without using .extra() and using just normal django? -Wes Wagner -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-us...@googl

Re: How to make base.html a little more useful?

2010-10-31 Thread Wes Wagner
That switched the lightbulb on above my head. Thanks! -Wes On Oct 31, 8:16 am, Shawn Milochik wrote: > Context processors, or a custom template tag, as described in James Bennett's > book, "Practical Django Projects." -- You received this message because you are subscribed to the Google Grou

How to make base.html a little more useful?

2010-10-31 Thread Wes Wagner
base.html with every view call. Each time the left nav in base.html would be rendered it would need to draw data from a couple different apps I have installed on the site. Can someone point me in the right direction? -Wes Wagner -- You received this message because you are subscribed to the Google

Re: Split models.py to smaller parts.

2009-05-03 Thread Rick Wagner
> > Thank you for the explanation. I think this trick is not in the > > Documentation yet > > That's because it's pretty basic Python knowledge. I'm sure I've read   > on this list that basic Python knowledge isn't supposed to be   > documented in Django as it's already part of the official Python

Re: Is Django the Right Choice?

2009-04-24 Thread Rick Wagner
Hi John On Apr 24, 12:25 pm, John Crawford wrote: > > Django doesn't ship anything for XML serialization or deserialization,   > > but Python does. > > Actually, Django does provide that capability, at least in 1.0/1.1: > > http://docs.djangoproject.com/en/dev/topics/serialization/#topics-ser...

Re: Is Django the Right Choice?

2009-04-24 Thread Rick Wagner
On Apr 24, 9:12 am, Masklinn wrote: > On 24 Apr 2009, at 16:24 , Carmine wrote: > > > On Fri, Apr 24, 2009 at 2:41 PM, Masklinn   > > wrote: > > >> On 24 Apr 2009, at 10:55 , earcar wrote: > >>> 1. does Django support REST queries? > >> I fear that question doesn't make any sense, REST is an a

Re: Split models.py to smaller parts.

2009-04-20 Thread Rick Wagner
On Apr 20, 2:57 am, x_O wrote: > Hi > > I'm looking for some general solution how to split models.py. Right > now my models.py reached 1000 lines and that argues some how with good > programing behaviour that I used use. > > I'm thinking about: > myproject/ >    settings.py >    myapp/ >      

Re: Sending large, generated files

2009-04-15 Thread Rick Wagner
On Apr 14, 6:55 pm, Graham Dumpleton wrote: > On Apr 15, 7:49 am, Alex Loddengaard wrote: > > > > > I've found several messages on this list discussing ways to send large files > > in a HttpResponse.  One can use FileWrapper, or one can use a generator and > > yield chunks of the large file.