Human
In raspberry pi
Human
Where to use the control code (in views or somewhere)
Cesar
What?
Cesar
Can I able to control gpio using Django local server ?????
I dont have a RPi but as far as i know... if you know how to code for RPi on python you just port that code to your project
Cesar
using the gpiozero library
Human
Into the views.py am I right
Cesar
Sure (?) i just dont see why you would do a RPi website to control GPIO, its like using a tank to tow a bicycle
cj
pay your own subscription
xarala221
Please help me with the interview questions on django
You need to understand these concepts MVC pattern (in Django we've MVT) Django ORM
Nisha
Plzz suggest me any project for final year on the python and Django framework
AJ
How about a blog?
Владислав
Hi, guys. Help me please. I dont know how add two parammeters in include template whith widget_tweaks
cj
You need to understand these concepts MVC pattern (in Django we've MVT) Django ORM
no, django is not MVT we've already discussed that here many times
Anders (izzno / gooood) 🇳🇴
Plzz suggest me any project for final year on the python and Django framework
Instagram copy / library / pizzaplace with online ordering and baking tracking
Nayan
Hi guys can someone help me how to connect to sql server in django Can we migrate it also ?? I am new for django so i am getting confused please help me
Nayan
I have table which i have to use it and to create a page ... Also i can still able to see all that things in admin panel aslo ?
Cesar
Sb admin2
Mirco
?
xarala221
no, django is not MVT we've already discussed that here many times
You've understand what is design pattern or software architect ? The name don't matter, the concept is the most important.
cj
try grappelli
Mirco
Permission error on what ? and why u have a project on Google drive 😅
Doragonsureiyā
Hi guys can someone help me how to connect to sql server in django Can we migrate it also ?? I am new for django so i am getting confused please help me
Step 1: Open a browser Step 2: Write down https://google.com or https://duck.com and press Enter Step 3: In the search box write down the same words you asked here Step 4: Read the firsts results
xarala221
Ok I understand
Aswath
dude...
Aswath
what payment gateway is easy to use with django other than stripe
Aswath
im not understanding how do i bring in razorpay
cj
what payment gateway is easy to use with django other than stripe
anyone, they don't matter what framework you use, most of them have a public API you can use, it doesn't matter the programming language/framework you used on your website 🤷🏻‍♂
Михаил
Hello. Can you recommend an article about dividing user content into groups in django?
cj
dude yeah razorpay fits my region well... but i couldn't understand their docs.
then read them again and again until you understand it 🤷🏻‍♂
cj
huh... i mean it is not that relevant
reading the docs is not relevant? well, then you have a problem 🤷🏻‍♂
Aswath
reading the docs is not relevant? well, then you have a problem 🤷🏻‍♂
you mean there is a problem with me or i am into a problem
Stanislav
Hello, can someone explain why iteration is didn't work {% for name in names %} <p> {{ name }} </p> {% empty %} <tr><td>No results to show.</td></tr> {% endfor %} def posts_list(request): n = ['yoda, 'Obi', 'Luc'] return render(request, 'blog/index.html', context={'name': n}) returned No results to show.
Stanislav
Sry
Stanislav
thank you
Nikhil
Is purchasing a course from udemy worth purchasing....i want to learn how to structure a django websites in different apps and a mentor too
Cesar
Well documented
Suresh
Django is easy or flask?
Shikhar
Django is easy or flask?
Flask. But to be honest, it mostly depends upon situations.
Cesar
If I would like to run an app in no time I would go with Django, but if I want simplicity and "do-it-myself" I pick flask
Anonymous
Is there any way to append table column in django? table name is 'TestTable'. and How can add a new coloumn in table which is hold in markAtrr veriable. def createTest(request): markAttr=request.POST.get('Attr') obj=TestTable()
Martín
hello, I have a cookiecutter-django project When trying to use https in local, Django answers with a: You're accessing the development server over HTTPS, but it only supports HTTP I have already googled and tried changing values in these variables: https://hastebin.com/uyisinetun.shell
Martín
I know, I don't want to work in development locally using https but I want to be able to test that https will work when coming to production
Martín
and now it seems like it won't work
Martín
you understand me, @pyflare
Pixelated
Guys a quick question. I'm try to build a page that acts a web file manger for a private cloud storage. I get the containers and list them in a page, but how do I display the files in the container when clicked on it dynamically
Cesar
I know, I don't want to work in development locally using https but I want to be able to test that https will work when coming to production
Hold on... Https is not mean to be used on dev env. Because Django service for development is not meant to be used in dev
Cesar
What are you using as web server ?
Martín
I'm with django default
Cesar
That's the problem...
Martín
I insist, it's not like I want to develop locally with https, but I want to test it will work in production
Martín
I'm starting to think that I'm missing something from your words
Cesar
It doesn't matter if it works on dev because you need to configure your webserver
Cesar
The webserver you are using in production
Martín
aham, so it doesn't make sense to setup the development server because the production server will not be the django development server and configuration will be totally different
Martín
is that what you are trying to tell me?
Martín
ok, so being a project from a cookiecutter-django template I suppose that's being taken care automatically in production settings, I'm not worried anymore thanks, @ceterre , @pyflare
Mirco
you understand me, @pyflare
It's simple, use a production-like environment before going on production
Martín
Maybe I will add a staging environment
Cesar
It's simple, use a production-like environment before going on production
Exactly.i almost always have development > testing > prod. just on small projects i skip testing
tfhx8
Hi. I using Django Rest. I making custom APIException and status_code = 200. I open page and see "200 Ok"
tfhx8
Why '200 Ok' ? Me need change this label, how it make?
Mirco
Show the code
Diego
Hi, does anyone how if there's any restriction about view types and Axios get and post method? i'm using ListCreateAPIView, but i can't get data from the api and display on the frontend
cj
Why '200 Ok' ? Me need change this label, how it make?
why do you want to break HTTP Status Codes?
cj
Omair
😂
Anonymous
Hello) I am coding a website for an open online course) How do I add testing for this lecture? So that you can add tests to each lecture from the admin panel? any ideas?
Eric
Hello) I am coding a website for an open online course) How do I add testing for this lecture? So that you can add tests to each lecture from the admin panel? any ideas?
Question is unclear. Are you (1) taking an online course, and one assignment of the course is building a Django website/webapplication? And you want to know how to write pytest tests for your Django code? or (2) Building a web application that will provide online courses, with lectures and possibly quizzes and tests as part of the course?
Anshul
I am a beginner can anyone suggest me a good Django project to work upon??
AJ
I am a beginner can anyone suggest me a good Django project to work upon??
https://djangocentral.com/building-a-blog-application-with-django/