Re: django 2 under python 2

2018-01-26 Thread Andy
okay after digging a little bit more yesterday i found out why this is happening .. https://code.djangoproject.com/ticket/28878 its fixed in 2.0.1, but maybe they will be able to reupload 2.0 Just to be clear: i know that django 2 aint working under python2, but its a pain to setup cross

Re: Get request, has PK, how do I access the PK data with in the model

2018-01-26 Thread Andy
Travis have a look the very cool and complete django tutorial which explaining how you query models in part2. Once you have create the admin views, watch closely at how the list filters work to get an idea of what you have to do. :) -- You received this message because you are subscribed to

Re: unable to save object Django (2.0)

2018-01-26 Thread harsh sharma
change that variable but still i mm unable to save the object On Friday, January 26, 2018 at 10:56:14 AM UTC+5:30, Omar Abou Mrad wrote: > > > On Tue, Jan 23, 2018 at 10:10 PM, harsh sharma > wrote: > >> i am trying to save the basic information about a person >> i have

Re: url issues

2018-01-26 Thread rajendran . p
def login(request): return render(request,'login.html') On Friday, January 26, 2018 at 6:33:07 AM UTC+5:30, suabiut wrote: > > Hi, > i am having some issues with my url pattern. i can't seem to figure out > the problem. i am running django 1.11. > > i have an app name userprofile which

Re: unable to save object Django (2.0)

2018-01-26 Thread harsh sharma
their is no error message i am doing something wrong in my forms which is being solved thank you regards On Friday, January 26, 2018 at 3:09:43 AM UTC+5:30, Andy wrote: > > what is the actual error message? > > Am Dienstag, 23. Januar 2018 21:10:00 UTC+1 schrieb harsh sharma: >> >> i am

Re: unable to save object Django (2.0)

2018-01-26 Thread harsh sharma
thank you regards On Wednesday, January 24, 2018 at 2:58:07 PM UTC+5:30, Anoosha Masood Keen wrote: > > Try this in models.py file > > > > > > > > > > > > > > > > > *class personmanager(models.Model):notes = models.TextField()link > = models.URLField()number =

Re: unable to save object Django (2.0)

2018-01-26 Thread harsh sharma
thank you the problem has being solve regards On Friday, January 26, 2018 at 10:56:14 AM UTC+5:30, Omar Abou Mrad wrote: > > > On Tue, Jan 23, 2018 at 10:10 PM, harsh sharma > wrote: > >> i am trying to save the basic information about a person >> i have created a

Error

2018-01-26 Thread 'Anoosha Masood Keen' via Django users
Working with ticket #29039 *Error:* if name.startswith('.'): AttributeError: 'NoneType' object has no attribute 'startswith' *CODE added to settings.py:* MIGRATION_MODULES = {} for app in INSTALLED_APPS: if app: MIGRATION_MODULES[app] =

Re: how do I make django search for male or female without needing to specify an age?

2018-01-26 Thread eileen
I should add that this initally loads a list of children without specifying either gender or age On Friday, January 26, 2018 at 12:05:04 PM UTC-5, eil...@themaii.org wrote: > > I have a file: views.py which refers to two main fields on the page: age > and gender > Right now, the search requires

Re: how do I make django search for male or female without needing to specify an age?

2018-01-26 Thread Julio Biason
Hi Eileen, Your problem seems to be the line if form.is_valid() and form.data['gender'] != '-': It seems it will only accept the form if the gender is not "-"; if you change that (say, removing the part after the and), it should solve it. ... although you should have a better

how do I make django search for male or female without needing to specify an age?

2018-01-26 Thread eileen
I have a file: views.py which refers to two main fields on the page: age and gender Right now, the search requires that an age to be chosen whether or not the gender is, and I'd like to make the age optional as well. I.e get all the children. Additionally, I'd like to search for only males or

Re: how do I handle a dropdown in Django whose only purpose is to get data.

2018-01-26 Thread Melvyn Sopacua
There are a bunch of issues with this code: 1) Spell Physical correctly: > 2 - Phyiscal > if form.data['handicapped'] is 'Physical' or 'Mental': > handicapped = forms.ChoiceField(choices=[(x, x) for x in ('---', > 'Mental', 'Physcal')], required=False) Comparison of non

Re: how do I handle a dropdown in Django whose only purpose is to get data.

2018-01-26 Thread eileen
well, you certainly got me correct! I'm fairly new to python - didn't do much coding to learn. Trial by fire, sort of. and the original person who put this together is now gone from the company and won't answer any outstanding questions. Plus, I *think* he got most of the code from 3rd party

PyCon Charlas at PyCon US: hablas español?

2018-01-26 Thread Roberta Takenaka Granero
Novedades en PyCon US. En Febrero, call for Papers para charlas en español https://www.facebook.com/pyconcharlas/ Roberta Takenaka -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and stop receiving emails from

wsgi error

2018-01-26 Thread tango ward
Hi Team, Not sure if this issue covered here but I am getting an error uploading my pet project in Heroku. ModuleNotFoundError: No module named 'animals.wsgi' 2018-01-27T02:59:26.637953+00:00 app[web.1]: [2018-01-27 02:59:26 +] [8] [INFO] Worker exiting (pid: 8)

Re: Deploying SSL for my Django 2.0.1 server with Apache on Ubuntu 16.04 (droplet)

2018-01-26 Thread drone4four
The username on my droplet is ‘tranq’ but there is a line in both my vhost config files which reads: So I swapped out ‘user’ for ‘tranq’. That line now reads: Now some of my static files are accessible. For example you can see here: