Re: Autocomplete in Django

2017-09-18 Thread Melvyn Sopacua
Then you need to learn Ajax. You can't do dynamic forms like this and not use Ajax. I linked django-autocomplete-light for a reason: if you follow the docs and use it, you can build things you need without knowing Ajax. However, if it doesn't work or is creating problems because of incorrect input

submit form as superuser vs regular user

2017-09-18 Thread Danae Vogiatzi
In my django app I have a Myuser(User) class. It inherits the User class. When a new user is created the Myuser table is poplulated. myusers.py class Myuser(User): address = models.CharField(max_length=40) pobox = models.CharField(max_length=40) models.py class Someclass(models.Mode

Re: single queryset from multiple tables

2017-09-18 Thread Michal Petrucha
On Fri, Sep 15, 2017 at 07:26:27AM -0700, DG wrote: > After reading this thread and answers on SO (e.g. How to combine 2 or more > querysets in a Django view? > ) > > I'm still not sure if this

RE: single queryset from multiple tables

2017-09-18 Thread Matthew Pava
I'm assuming that Model_A and Model_B have some similar columns if you are going to be showing them as an index view. It would seem to me that you need to reconsider your model design. Perhaps you can pull out what is common between them and create another model that they both inherit from or

[django.contrib.admin] Static files on signed S3

2017-09-18 Thread Manuel Jeckelmann
Hi list, In my app, I've configured STATICFILES_STORAGE to 'storages.backends.s3boto3.S3Boto3Storage'. The S3 storage I use is a custom instance, requiring v2-signed requests. What I've noticed now, is that static files base.css and forms.css get loaded nicely (using a S3v2-signed request).

Re: Django forks

2017-09-18 Thread Jamesie Pic
Hi all, After taking a ride in Go lang framework world, and coming back with the idea that I'd still be producing Django projects for the next 3 years, I have started to fix the problems I think are in Django in a layer that sits on top of it: https://github.com/yourlabs/crudlfap because I think t

Autocomplete

2017-09-18 Thread Mitul Tyagi
How to use create_field in django autocomplete. As per the doc http://django-autocomplete-light.readthedocs.io/en/master/tutorial.html#creation-of-new-choices-in-the-autocomplete-form I am getting an error while doing so... " TypeError: City1Autocomplete() received an invalid keyword 'create_fiel

django newb, python newb. HELP! URL link worked for days, now has stopped working. Have I found a bug?

2017-09-18 Thread Manches spainspots
Sorry to be a bother, this probably has a quick easy answer that I am just not seeing. The template code that calls the url: My Tree The idea here is to construct a tree view that can focus on any Person object in my model, and database, based on pk of the Person you want to center on.

Re: django newb, python newb. HELP! URL link worked for days, now has stopped working. Have I found a bug?

2017-09-18 Thread Manches spainspots
Edit this is the middle screen shot with the part circled that I have a question about. On Monday, September 18, 2017 at 4:49:41 PM UTC

collectstatic fails

2017-09-18 Thread Mike Dewhirst
Ubuntu 16.04 dedicated staging server, Django 1.10.8, Python 2.7 Collectstatic has been working forever on this machine driven by Buildbot during a complete site deletion and recreation from scratch. I must have changed something but I can't think what. It appears that Django tries to import

Re: collectstatic fails

2017-09-18 Thread Mike Dewhirst
This time with a plain text traceback. Sorry about that. On 19/09/2017 3:22 PM, Mike Dewhirst wrote: Ubuntu 16.04 dedicated staging server, Django 1.10.8, Python 2.7 Collectstatic has been working forever on this machine driven by Buildbot during a complete site deletion and recreation from sc