django select related select field in template form

2017-09-19 Thread Anuj Sharma
I'm working in *Django 1.11* I have three apps, *country*, *state* and *address* *state* model is associated with *country* by foreign key and *address* is associated with *state* with a foreign key. *country/models.py* class Country(models.Model): name =

Re: Autocomplete

2017-09-19 Thread Mitul Tyagi
Any help for this...Need to create new fields in case no match works for autocomplete On Tuesday, September 19, 2017 at 1:37:29 AM UTC+5:30, Mitul Tyagi wrote: > > How to use create_field in django autocomplete. As per the doc >

Re: Adding data via admin not visible on html template until restart server (python manage.py runserver)

2017-09-19 Thread Manches spainspots
manage.py runserver should only need to be ran after making changes to your code. Make your data changes in admin on one tab. load your html on another tab. Make change B in admin. On the second tab, hit refresh. Make changes to your code. manage.py runserver Go to your admin tab of the

RE: Data_upload_max_number_fields increase greater then 1000 in Django framework?

2017-09-19 Thread Matthew Pava
https://docs.djangoproject.com/en/1.10/_modules/django/utils/http/ DATA_UPLOAD_MAX_NUMBER_FIELDS = None From: django-users@googlegroups.com [mailto:django-users@googlegroups.com] On Behalf Of Kusum Kumari Sent: Tuesday, September 19, 2017 6:26 AM To: Django users Subject:

Data_upload_max_number_fields increase greater then 1000 in Django framework?

2017-09-19 Thread Kusum Kumari
Data_upload_max_number_fields increase greater then 1000 in Django framework? -- 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 it, send an email to

Adding data via admin not visible on html template until restart server (python manage.py runserver)

2017-09-19 Thread avtar sandhu
Please can anyone help me I have a Django Model class Event(models.Model): scheduled_event = models.BooleanField(default=True) category = models.CharField("category ", max_length = 30) registered in admin class PostEvent(admin.ModelAdmin): admin.site.register(Event, PostEvent) I can add

Re: submit form as superuser vs regular user

2017-09-19 Thread Avraham Serour
not sure if related, but the docs suggest to inherit from AbstractUser, not User https://docs.djangoproject.com/en/1.11/topics/auth/customizing/ On Mon, Sep 18, 2017 at 12:58 PM, Danae Vogiatzi wrote: > In my django app I have a Myuser(User) class. It inherits the User

Re: Choices in DecimalField - django 1.8.

2017-09-19 Thread Gordon Wrigley
In case anyone else ends up here, I've found that it's very sensitive to how you specify the Decimal, so in my example Decimal('20.00') worked but Decimal('20') and Decimal(20) did not. On Monday, April 20, 2015 at 6:44:30 PM UTC+1, eltonplima wrote: > > In the model below, using the Django

problem about using matplotlib in django

2017-09-19 Thread Ahmet Temiz
Hi, In django I tried to use matplotlib and I run into this exception ... icon_img = Tk.PhotoImage(file=icon_fname) File "/usr/lib/python3.5/tkinter/__init__.py", line 3397, in __init__ Image.__init__(self, 'photo', name, cnf, master, **kw) File