how to update Form value from custom admin template to admin.py

2018-02-08 Thread arvind yadav
admin.py file ### i am no sure how to do i am sending object (osm_data) on html page order_final.html every thing working in render but i want update some field from order_final.html page *change_form_template = 'admin/appname/userorders/order_final.html'* def get_osm_info(self):

Re: How to install and use Django

2018-02-08 Thread Jani Tiainen
Hi, There is not actual IDE for Django, IDEs like Visual Studio, PyCharm, PyDev. Also some editors like Vim, Emacs, VSCode, Atom, Textmate do have support for Python at some extent. Do theĀ  official tutorial [1] or if you find that official tutorial is too packed Django Girls [2] do have

modelform not loading from template

2018-02-08 Thread sum abiut
Hi, i have a hard time figuring out why this form in not loaded on the template. There is no error but the form is not loading. Please advise what i am missing here. view.py def addcontact(request): if request.method=='POST': form =ContactForm(request.POST) if

Re: app's post-migrate triggers work only with pip's -e flag

2018-02-08 Thread Olivier Dalang
Well it was some deleted file's .pyc lying around (models.pyc which was triggering migrations) :/ Sorry for the noise ! Kind regards, Olivier On Fri, Feb 9, 2018 at 10:32 AM, Olivier Dalang wrote: > Dear List, > > I'm currently trying to deploy a Django 1.8 app and

Re: How to install and use Django

2018-02-08 Thread yingi keme
Follow this quick video lessons on using django https://m.youtube.com/watch?v=FNQxxpM1yOs But you have to cd into the directory/environment where u have your python installed and type in the command 'pip install django' You can follow the youtube video link above for lessons to understand the

app's post-migrate triggers work only with pip's -e flag

2018-02-08 Thread Olivier Dalang
Dear List, I'm currently trying to deploy a Django 1.8 app and run into a strange problem. My app defines a post-migrate trigger in apps.py : # apps.py class MyAppConfig(AppConfig): ... def ready(self): print('Debug : installing the post-migrate callback') post_migrate.connect(my_callback,

Multple django projects on a single digitalocean droplet

2018-02-08 Thread Shaojun Xie
I'm trying to host 3 django projects in a single digitalocean droplet. Please see the httpd configuration below: peardb.tabomics.cn and www.peardb.tabomics.cn are working. But www.biotldr.tabomics.cn doesn't work. I tried to ping 'www.biotldr.tabomics.cn'. Here is the result: $ ping

One domain doesn't work for multiple django projects in one DigitalOcean droplet

2018-02-08 Thread Shaojun Xie
BioTLDR ## #Listen 80 WSGISocketPrefix /mnt/volume-nyc1-02/project/BioTLDR/wsgi/wsgi ServerName www.biotldr.tabomics.cn ServerAlias biotldr.tabomics.cn www.biotldr.tk biotldr.tk ServerAdmin h...@biotldr.tk ErrorLog

How to install and use Django

2018-02-08 Thread Vismaad Tamber
Hi I am new to Django. can anyone please help me with installation and starting a project. Does Django have IDE like dreamweaver or Visual studio to design a website? I have installed Python 3.6 on my Windows machine. Also I have downloaded and installed Django files at location

BooleanField ignored by makemigrations Django 2.0

2018-02-08 Thread Gary Mumford
Hi, I have just installed Django 2.0 and Python 3.6.3. I am not a noobie, but it has been a while since I djangoed. I have several fields in a model.py which are BooleanField type. When running makemigrations.py, these fields are being ignored and not being generated into the migrations code