Lords
Hey,everyone I have small query with the help of site in Django site framework can we build multiple can we create multiple sites with different data and templates with single Django project and Database
Lords
If anyone have knowledge on Django sites give me clarity Thanks in advance
ZAHER.KRYEM
ZAHER.KRYEM
and include path when install python
Alireza
Hi everyone, I download a tamplate from bootstrap but my static file doesnt work correctly .can you help me that where is my problem?
Alireza
This group doesn't let me to send picture for you
Muflone
Osondu
Hey everyone, please who has implemented an SSO in DRF?
Osondu
Like authO or stuff
Charly
.
Pls hw can I add live trading chart to my page
cj
Charly
Charly
Lords
hey,everyone when I am trying to run my project in local machine with python manage.py run server I am facing these error .django.server You're accessing the development server over HTTPS, but it only supports HTTP. help me to resolve these issue.
Charly
Lords
till yesterday it is working fine
Charly
Lords
after shutdown my desk now I getting these error i tried to clear my browser data but it is not resolved
Lords
Charly
yeah
Try another browser, edit the url in the location bar
Lords
Lords
in my settings secure redirect URL I am given True previously it is working fine when I am to find the resolution in stack over flow I observed one thing when we enabled secured redirect URL some times we will get SSL error so I am disabled it but still getting error
Believe
Lords
Charly
Lords
Charly
I tried it Charly
Ok then I don't know who or what is redirecting that's not normal behavior
Lords
Believe
Try to run on different port
Lords
123456
Hello I need help installing GDAL .. I have a project that obligates me using the gdal , I already installed all necessary build tools and now getting this error:
C:\Users\username\AppData\Local\Programs\Python\Python311\include\pyconfig.h(59): fatal error C1083: Cannot open include file: 'io.h': No such file or directory
error: command 'C:\\Program Files (x86)\\Microsoft Visual Studio\\2022\\BuildTools\\VC\\Tools\\MSVC\\14.38.33130\\bin\\HostX86\\x64\\cl.exe' failed with exit code 2
[end of output]
note: This error originates from a subprocess, and is likely not a problem with pip.
ERROR: Failed building wheel for gdal
Failed to build gdal
ERROR: Could not build wheels for gdal, which is required to install pyproject.toml-based projects
anyone know how to help ( yes i searched around already I'm stuck i have a feeling that I'm missing something )
thank you
Lords
Hey,everyone If anyone have knowledge on User login email verification if snippet available please share it. Thankyou in advance
Believe
Through otp on email?
Charly
Willi@m.
Is there a site where you recommend for learning databases in Django? I find it hard to follow it's documentation
Ali
Papy
Porri
someone use django-select2 and context_processor to send home template? thanks
Doragonsureiyā
Porri
example to see it?
Mohsen
Hey guys 👋
I'm trying to create a full website using django ( Im new to django but i have a almost robust background with python and scripting)
I learnt something about django in recent weeks but i have a major question
IDK how to structure my app to it will be easy to develop on other platforms
i came up with an idea to create an app only as a api with json returnings
and a another app (for the same project) to use those api's in a templated web pages
soryy if my questions are so simplistic and newbie
please tell me how to write my code
Mohsen
im confused about my structure
i don't like to change my structure after hours of development
my app is going to be so big
Muflone
Mohsen
i have seen some projects on github
they were mixing functions that only respond as json and functions that render html pages but I think it's not a good way to approach when your app is going to be robust and big
Muflone
having an app only dedicated for api
and another app for showing it on browser is ok?
a single app project is not wrong in any way
usually project are split on different applications if this has a meaning of creating reusable applications
for small projects a single app project is perfectly acceptable.
also having another application to split the web part is not wrong.
someday you could hire a professional frontend developer, you simply drop your application 'web' and keep only the 'api' application
Muflone
what's important is the api application doesn't depend on the other
Mohsen
🙏 thanks
Muflone
Muflone
the web application should meraly render the html templates
the html templates should call the api using JS
Mohsen
Mohsen
how my api should answer for multiple situations? for example a simple registration has about 10 possible different outputs (like repetitive usename or email)
MHJ
Guys I have a question
Why when I submit a review then I reload the page it submit again
MHJ
Mohsen
Guys is there any way to change the email to phonenmber in djangos definition user model?
or i should create a new model
Muflone
Mohsen
Mohsen
you told me i should design an api then i will be able to use and call my api in html using js
Muflone
API use used by rest or graphql
How do you use your api instead?
Mohsen
Mohsen
right now im using curl for testing
but i will call it with Js as you told me
Muflone
Mohsen
I don't have my templates or 2nd app yet
Muflone
Oh ok, then ok
If you intend to develop the frontend using Django then you should make use of your API
Muflone
At any time your frontend could be replaced with anything else with zero changes in your code
Mohsen
🙏 thanks
Mohsen
for example imagine that I've done developing my api
for further steps ( development of front end) i should use django or is it possible to just let the front end developer to make the choice
Muflone
There are a lot of tutorials how to design api
Correct verbs, terms, answers, error code
Mohsen
Muflone