tk
Or project on restaurant website
Artyom
Or project on restaurant website
https://github.com/rogargon/myrecommendations/tree/web2-html
Artyom
in values you can get foreign object's field like 'address__city_name'
Tkanks for suggest, I tried this: def report(request): reportt = Renters.objects.select_related('renter') reportt.values('name','snameplp','fnameplp','patronymicplp','identity_doc', 'serial_doc', 'number_doc','ogrn','inn','subject','city', 'street','house','housing') return djqscsv.render_to_csv_response(reportt)
Artyom
and result is .csv with only Renters objects. +I had to define relation_name in the model.
Artyom
in values you can get foreign object's field like 'address__city_name'
when I try to set something like this: 'address__city_name' url trhows this : Cannot resolve keyword 'city' into field. Choices are: ..
.
when I try to set something like this: 'address__city_name' url trhows this : Cannot resolve keyword 'city' into field. Choices are: ..
https://stackoverflow.com/questions/27180190/django-using-objects-values-and-get-foreignkey-data-in-template
Joshua Rebelo
Any secure coding practices or guidelines specific for Django
.
Any secure coding practices or guidelines specific for Django
Official Django site has information about it
Joshua Rebelo
Thanks
Joshua Rebelo
But I also wanted to know is anyone would want to add to it based on experience
Artyom
https://stackoverflow.com/questions/27180190/django-using-objects-values-and-get-foreignkey-data-in-template
well the cannot resolve keyword ' ' into field problem doesn't dissapear. I didn't understand what is wrong. all like in the your stackoverflow example o this : https://stackoverflow.com/questions/26110191/django-get-specific-columns-from-multiple-tables and etc.
Artyom
all is ok. I did it. @manstein1887 thanks for help.
Anonymous
I want to learn jQuery But only the parts what are needed for Django Is there any book or website? To be more specific the book uses Django for their backend codes
Anonymous
I didn't understand My question is not clear? Sorry
cj
I didn't understand My question is not clear? Sorry
jQuery is a library to be used in the front-end, it doesn't matter if you're using Django or any other framework in the back-end Django is a framework to be used in the back-end, it doesn't matter whatever libraries you're gonna use in the front-end Can you use both to make a web app? yes you can, just work on each one independently 🙂
Anonymous
I know that
cj
there aren't "parts needed for Django" in jQuery 🤷🏻‍♂️
Anonymous
I know
Anonymous
Let me try to say my question in other words
cj
there aren't specific books/websites for jQuery and Django (as one thing)
Anonymous
A book that it's subject is jQuery In that book or tutorial there are subjects that need backend coding to teach you jQuery In those parts this book uses Django as backend framework Because I know Django and I'm learning django
Ashik
Any one have new ideas for an attendance record system for staffs in an organization
Namitha
How do I refer to an individual element from a ManytoMany relationship in django
Namitha
?
Guillermo
How do I refer to an individual element from a ManytoMany relationship in django
Its a QuerySet, so you can use .get, .filter, indexes, etc
Namitha
lemme try that.Thankya
Python2411
Hi guys
Python2411
I got an issue on the Deployment of Saleor
Python2411
Saleor is a package in Django used for e-Commerce
Python2411
My Issue is about the Secret Key, I have made : python manage.py migrate and my Terminal output me that My secret key is empty but My secret key is not empty in Settings.py
Python2411
I have take ss of my seetings.py (where is the secretkey value), the issue and my level at the deployment of Saleor
Python2411
Those ss are in this folder : http://www.mediafire.com/folder/hcc5z0q28zsxa/Saleor's_issue
Python2411
I'm new and my english isn't very very good... I talk french currently. And English, I'm not bad
cj
How plz ?
1. Set an environment variable the proper way. 2. Get back the os.environ.get('SECRET_KEY') line 3. profit and be happy
Python2411
prope way ?
cj
yes
Jhon
Hi group, I have a question, I make a web application with DJango, I use phthonanywhere like host, and I try to publish in GoDaddy domain. In the help say, configure the DNS, I configure but I can’t see my web aplication Do you know how deploy the app in godaddy and python anywhere ? Thanks
Daniel
hi people, I from Colombia
Daniel
I deployed my project in digitalOcean ... and I set up the serverblock so that it serves me the static files and shows them well, but I have a route for the API ... so: www.ejemplo.com.co/api/clientes/ 1 but I get page 404 .. any ideas about it to be able to solve this? ... thanks for the time
Alexander
(And make GraphQL or/and RESTful API on Django backend side)
Anonymous
If I want to use Ajax (by Ajax I mean processing requests and sending responses without refreshing) I'd definitely will need JavaScript and a js framework? Right?
Alexander
You need make fetch request from js-based client side to Django-based API on server side and process json data
Alexander
fetch or axios
Daniel
are your URLs set correctly?
yes, I have a app movil that query these url ...
Daniel
location = /favicon.ico { access_log off; log_not_found off; } location /static/ { alias /home/encargo/admin-web/admin-webstatic/; } location / { include proxy_params; proxy_pass http://unix:/run/gunicorn.sock; } This is the blockserver
cj
what about urls.py files in the project?
Daniel
what about urls.py files in the project?
the urls of my API .. they are in /my_project/app/url_rest.py
Eddie
Hey guys
Eddie
Am about creating a django project that's works like an mlm anyone created an mlm with django?
Eddie
Also anyone used django and vuejs before am now starting so will be needing guidancw
Daniel
what about urls.py files in the project?
mi project have 2 files urls ...
Daniel
mi project have 2 files urls ...
If my project hae 2 files urls, how to I read this urls? ... humm
Mirco
Mirco
Okay thanks man
Yw 😁💪
syedj
In django how can i use scheduler to call an api with arguments periodically
syedj
use external tools like celery
Will it run with django, to call periodically?
GNU/Matt
Well, you can actually set the web server to run a specific script over a determined period of time, btw i don't know whether it works for django
GNU/Matt
I have tried with PHP scripts only tough
Code9
Will it run with django, to call periodically?
no, this would should be handled by the web server
GNU/Matt
First of all you need to set up a real web server like nginx or Apache
GNU/Matt
Or at least use nginx as a rproxy
GNU/Matt
Then you have a full working HTTP 1.1 Server with full functionalities
syedj
Let me explain what I have written