python with django orm code , after exits, the entry from db revert backs

2015-01-11 Thread JAI PRAKASH SINGH
hello all, please reply 1) I wrote a code n python using django orm, 2) to enter the url entry in mysql db, 3) and this code enters the data (url) in mysql db 4) and code exists fine but when i see the database it revert back , i.e there is no data aft

Re: Deploying Django on Docker

2015-01-11 Thread Anssi Kääriäinen
I have given this issue a bit more thought, and it seems using Docker might be a bit too complex for the "just completed tutorial use case". Docker is nice, but if things do not work out the way you want, troubleshooting can get a bit complex. Instead it might be good to *fully* document how to

Re: updating data in a row

2015-01-11 Thread James Schneider
You'll need two views to do this, one of them is the form, and that you already have written. Have you read through the tutorial? It explains how to use an FBV (which seem to be your preference, which is fine) to create the other view that lists one or more objects in a table format: https://docs.

Re: Using models.py Without a Webserver

2015-01-11 Thread James Schneider
Absolutely. If this is an operation that you'll do often (possibly via a cron job), I would suggest a custom management command. https://docs.djangoproject.com/en/1.7/howto/custom-management-commands/ Anything you can do via 'manage.py shell', should be possible via a custom management command, i

Using models.py Without a Webserver

2015-01-11 Thread talex
I want to use the classes in my models.py file to load data into my database without running the web server. I have tried to find the needed include files and place them in the correct order, bit so far it does not work. Is it possible to do this? Is it advisable to do it? The idea is to loa

Re: updating data in a row

2015-01-11 Thread sum abiut
Basically my table structure look something of this type. I want to be able to allow users to click on edit and to make changes to to the table. just wondering if for loop can do the trick? i am a bit confuse. Update First Name Last Name Position Department Leave Type edit

Re: How to override satchmo/apps/satchmo_store/contact/forms.py

2015-01-11 Thread RLF_UNIQUE
Whoops that didn't work └── store ├── __pycache__ ├── localsite ├── static │ ├── admin │ ├── cache │ ├── css │ ├── fonts │ ├── images │ └── js └── templates ├── contact ├── product └── shop -- You received this message b

Re: How to override satchmo/apps/satchmo_store/contact/forms.py

2015-01-11 Thread RLF_UNIQUE
└── store ├── __pycache__ ├── contact ├── localsite │ └── contact ├── static │ ├── admin │ ├── cache │ ├── css │ ├── fonts │ ├── images │ └── js └── templates ├── contact ├── product └── shop -- You received thi

How to override satchmo/apps/satchmo_store/contact/forms.py

2015-01-11 Thread RLF_UNIQUE
Can't figure out how to override this file, here is my directory structure └── store ├── __pycache__ ├── localsite │ └── contact ├── static │ ├── admin │ │ ├── css │ │ ├── img │ │ │ └── gis │ │ └── js │ │ └── admin │ ├── cache │ ├── css │ ├── fonts │ ├── images

Re: updating data in a row

2015-01-11 Thread Edgar Gabaldi
add or update multiple rows, maybe you should see a little about formsets[1]. [1] https://docs.djangoproject.com/en/1.7/topics/forms/formsets/ On Mon, Jan 12, 2015 at 12:30 AM, sum abiut wrote: > I want to be able to click on a row, update it and then click on another > row update it and so on.

Re: updating data in a row

2015-01-11 Thread sum abiut
I want to be able to click on a row, update it and then click on another row update it and so on. On Mon, Jan 12, 2015 at 12:58 PM, sum abiut wrote: > Thanks very much Vijay its works. But it doesn't really solve my problem, > because i want to be able to edit more than one rows in a table not j

Re: updating data in a row

2015-01-11 Thread sum abiut
Thanks very much Vijay its works. But it doesn't really solve my problem, because i want to be able to edit more than one rows in a table not just one row. any help will be very much appreciated. Cheers, On Mon, Jan 12, 2015 at 11:38 AM, Vijay Khemlani wrote: > If you changed the url mapping

Re: updating data in a row

2015-01-11 Thread Vijay Khemlani
If you changed the url mapping then you need to include the id of the newleave in the URL you are accessing, for example http://10.0.X.X:8000/update_form/1/ On Sun, Jan 11, 2015 at 7:27 PM, sum abiut wrote: > Hi James, > > I am try to visit this url http://10.0.X.X:8000/update_form/ > > > > her

Re: updating data in a row

2015-01-11 Thread sum abiut
Hi James, I am try to visit this url http://10.0.X.X:8000/update_form/ here is the traceback: Request Method: GET Request URL: http://10.0.x.x:8000/update_form/ Django Version: 1.7.1 Python Version: 2.7.6 Installed Applications: ('django.contrib.admin', 'django.contrib.auth', 'django.contr

Every field is readonly in admin site

2015-01-11 Thread Abhinav Agarwal
I am not getting and 'change' and 'delete' options for user, groups and apps(every model). I have added admin.autodiscover() in url.py I have also imported models in admin.py -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from