Re: django-popup-forms

2013-08-14 Thread Timothy Makobu
Reading this https://github.com/joinourtalents/django-popup-forms It does show how to set it up. Where are you getting stuck? On Thu, Aug 15, 2013 at 2:41 AM, Brian Millham wrote: > I've been trying to use django-popup-forms, but with no success. Has > anyone used this? > >

Re: Model verbose name appears to split up on capitalisation (e.g. "iOS") - any way to suppress this?

2013-08-14 Thread Mike Dewhirst
On 15/08/2013 2:06pm, Victor Hooi wrote: For example, verbose_name-Plural on the main admin page (/admin) still seems to insist on capitalising the first "i" - as in, it appears as "IOS clients", rather than "iOS clients", as it's set in class Meta: Try verbose_name = " iOS Clients" with a

Re: Model verbose name appears to split up on capitalisation (e.g. "iOS") - any way to suppress this?

2013-08-14 Thread Victor Hooi
Hi, Aha, that's embarrassing...yes, it was the lowercase M. The extra spacing appears to be fixed now. However, capitalisation still seems a bit funny. For example, verbose_name-Plural on the main admin page (/admin) still seems to insist on capitalising the first "i" - as in, it appears as

Re: Model verbose name appears to split up on capitalisation (e.g. "iOS") - any way to suppress this?

2013-08-14 Thread Ramiro Morales
On Wed, Aug 14, 2013 at 11:46 PM, Victor Hooi wrote: > Hi, > > I have a Django model: > >> class iOSClient(models.Model): >> ... >> class meta: >> ... >> verbose_name = 'iOS client' >> verbose_name_plural = 'iOS clients' > > > However, when

Model verbose name appears to split up on capitalisation (e.g. "iOS") - any way to suppress this?

2013-08-14 Thread Victor Hooi
Hi, I have a Django model: class iOSClient(models.Model): > ... > class meta: > ... > verbose_name = 'iOS client' > verbose_name_plural = 'iOS clients' However, when this model appears in the Django Admin, or in say, Django Rest Framework, the human-readable

django-popup-forms

2013-08-14 Thread Brian Millham
I've been trying to use django-popup-forms, but with no success. Has anyone used this? I suspect that I didn't install it correctly. I just ran sudo python setup.py install, but it doesn't seem available under django. It looks like a nice package, and will do exactly what I'm looking for.

Re: South doesn't recognize modification in ManytoMany fields

2013-08-14 Thread Arnold Krille
Hi, On Thu, 15 Aug 2013 03:31:08 +0530 Pradeep Kumar wrote: > I have made a model change from > standard = models.ManyToManyField(Standard) > to > standard = models.ManyToManyField(Standard, blank = True, null = True) > South schemamigration for this app doesn't recognize

Re: South doesn't recognize modification in ManytoMany fields

2013-08-14 Thread Mike Dewhirst
On 15/08/2013 8:01am, Pradeep Kumar wrote: I have made a model change from standard = models.ManyToManyField(Standard) to standard = models.ManyToManyField(Standard, blank = True, null = True) South schemamigration for this app doesn't recognize the change ? I think it is probably not

South doesn't recognize modification in ManytoMany fields

2013-08-14 Thread Pradeep Kumar
I have made a model change from standard = models.ManyToManyField(Standard) to standard = models.ManyToManyField(Standard, blank = True, null = True) South schemamigration for this app doesn't recognize the change ?

Re: Class Based Views

2013-08-14 Thread Drew Ferguson
Phew! Thanks for clearing that up On Wed, 14 Aug 2013 17:29:59 -0400 Bill Freeman wrote: > I believe that GENERIC views that ARE NOT CBVs are deprecated (or maybe > even gone in the latest). > > > On Wed, Aug 14, 2013 at 5:23 PM, Drew Ferguson >

Re: Class Based Views

2013-08-14 Thread Bill Freeman
I believe that GENERIC views that ARE NOT CBVs are deprecated (or maybe even gone in the latest). On Wed, Aug 14, 2013 at 5:23 PM, Drew Ferguson wrote: > Hi > > Did someone here recently say CBVs are now or will be deprecated? > Or did I imagine that because I was on

Class Based Views

2013-08-14 Thread Drew Ferguson
Hi Did someone here recently say CBVs are now or will be deprecated? Or did I imagine that because I was on holiday? -- Drew Ferguson -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and stop receiving emails

Re: Do we need to setup Database Settings before Using Admin feature in Django?

2013-08-14 Thread Christophe Pettus
On Aug 14, 2013, at 11:31 AM, Harmeet Singh wrote: > Can we use the built in ADMIN feature in Django by just configuring > 'django.contrib.admin' under INSTALLED_APPS in settings.py file without > configuring DATABASES settings ? No. In fact, it's not clear what good the Django admin would

Do we need to setup Database Settings before Using Admin feature in Django?

2013-08-14 Thread Harmeet Singh
Hello, Can we use the built in ADMIN feature in Django by just configuring * 'django.contrib.admin'* under INSTALLED_APPS in settings.py file without configuring DATABASES settings ? DATABASES = { 'default': { 'ENGINE': 'django.db.backends.sqlite3' } or Is it required to

Re: Does Model.save() write back all the field values?

2013-08-14 Thread Tomas Ehrlich
Hi, I apologize for possible off-topic, but since Jacob already answered your question, please allow me to add another hint: Book.objects.filter(published=False).update(published=True) would do the same in single query, updating "published" field only (even in <1.5). Cheers, Tom Dne Wed,

Re: Does Model.save() write back all the field values?

2013-08-14 Thread Jacob Kaplan-Moss
It's not a bug; that is by design. However, it's not perfect, so in 1.5 we added update_fields: https://docs.djangoproject.com/en/1.5/ref/models/instances/#specifying-which-fields-to-save Jacob On Wed, Aug 14, 2013 at 7:01 AM, Dong Wang wrote: > Hi all, > > I'm using

MySQL Workbench Module to export Django model.py

2013-08-14 Thread Daniel Lichtblau
Hi, i've written a MySQL Workbench Module to export a Django model.py from the EER Diagram and i want to share it with the community. https://sourceforge.net/projects/mysqlworkbenchdjangomodule/ Any feedback is appreciated. -- You received this message because you are subscribed to the

Re: How do I create a script to fill in django admin login form and submit?

2013-08-14 Thread Elena Williams
Have you explored the packages "selenium" or "sikuli" these are both great fun for front-end testing. You could intercept the RFID tag using python and feed it through one of the above tools, or something like this perhaps (if I've understood what you're trying to do correctly). Elena :) On 14

Does Model.save() write back all the field values?

2013-08-14 Thread Dong Wang
Hi all, I'm using Django 1.4.2. Please let me start my question by an example: books = Book.objects.filter(published=False) for book in books: book.published=True book.save() I would think this small snippet of code will only update the "published" field, but actually it write all the cached

Subtitle upload images

2013-08-14 Thread Hélio Miranda
Hi I have a problem, that I am not able to solve it is: I'm uploading pictures, and wanted to introduce their legends too, so did the following, which was a preview of the images to the user before uploading. My html code is this: http://plnkr.co/edit/fm0hAZFkVUE7zA3BnZLw?p=preview And this

Re: How do I create a script to fill in django admin login form and submit?

2013-08-14 Thread Kelvin Wong
https://docs.djangoproject.com/en/dev/topics/auth/default/#django.contrib.auth.login K On Tuesday, August 13, 2013 10:23:48 PM UTC-7, 7equiv...@gmail.com wrote: > > Here is what I'm doing. I have written a script the runs and monitors a > serial connection for incoming data. The data comes

Re: Django Gunicorn with Two Django App

2013-08-14 Thread Timothy Makobu
Aaron's answer is spot on. Just adding that with Nginx, you don't need Apache. On Wed, Aug 14, 2013 at 11:10 AM, Kelvin Wong wrote: > The error "Could not reliably determine the server's fully qualified > domain name" is harmless, but the fix is easy. See... > >

Re: Django Gunicorn with Two Django App

2013-08-14 Thread Kelvin Wong
The error "Could not reliably determine the server's fully qualified domain name" is harmless, but the fix is easy. See... https://help.ubuntu.com/community/ApacheMySQLPHP#Troubleshooting_Apache If you are running Django under Nginx and Gunicorn, why are you restarting Apache anyway? Your

Re: Error importing middleware django.contrib.sessions.middleware

2013-08-14 Thread Kelvin Wong
What version of Django are you running? $ python2.7 -c "import django; print django.VERSION;" Did this ever work before you enabled Memcached? Did you remove the extra CACHES dictionary from settings.py? What was the full traceback from the Django shell? K -- You received this message

Querying content objects "forward" r/s

2013-08-14 Thread Nora Olsen
Hi, Based on the Django documentation for Bookmarks and tags, is it possible to have a queryset to find a list of bookmarks from a list of Tags? ==> TaggedItem*.*objects*.*filter(content_type__pk*=*bookmark_type*.*id) I want to retrieve a list of bookmarks. In my use case, I have users who