These are chat archives for django/django

11th
Dec 2016
Gourav Chawla
@Gouravchawla
Dec 11 2016 06:52
That would help me include that table in the database as django table/model, correct?
Gourav Chawla
@Gouravchawla
Dec 11 2016 07:00
@flyboy1565 Thanks for the suggestion. Actually, I'm building an application where data needs to be in tables where it would get fetched from. I was thinking why build models for those tables and was going to do it manually using SQL.
John
@flyboy1565
Dec 11 2016 07:20
@Gouravchawla , inspectdb can be used to write those models to a file.. you can then set a flag to tell django not to modify the columns... Then you can leverage the ORM.. instead of writing SQL
Gourav Chawla
@Gouravchawla
Dec 11 2016 08:53
Read that after your first comment. Thanks for pointing me to it.
Also, yesterday I looked at what I wanted to do and found more options to do it. There was this raw sql execution method which I could use. But I decided to build the models for those tables instead for now.
Thanks again!
Sherif O.
@shadowsyntax
Dec 11 2016 13:42
anybody has worked with django and apache containers? using the apache container to proxy the http requests to the django container. how do serve the static files created by django from the apache container. NB: using docker containers
John
@flyboy1565
Dec 11 2016 15:20
@shadowsyntax , I only really use nginx and gunicorn to host Django.
Dave Race
@confusedpublic
Dec 11 2016 20:11
Hey guys. Attempting to use Haystack to search my site. Want to build a custom form, followed the little tutorial in the documentation, but don't know how to access it from a browser. No idea what to do after creating the forms.py basically. Anyone have any knowledge/experience & can help me out? What'm I missing or forgetting to read in the docs/Django's documentation?