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
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
Osondu
Hey everyone, please who has implemented an SSO in DRF?
Osondu
Like authO or stuff
Charly
Hey everyone, please who has implemented an SSO in DRF?
Many people, what's your real question?
.
Pls hw can I add live trading chart to my page
Osondu
Many people, what's your real question?
Please I need a clear resource that could help me out with implementing it. Thanks in advance 🤲🏿
.
and include path when install python
I have done it, but there is no result that can solve the problem
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.
Lords
Don't access to it through https
I am trying it access with Http but it is automatically redirecting to Https
Lords
till yesterday it is working fine
Lords
after shutdown my desk now I getting these error i tried to clear my browser data but it is not resolved
Charly
yeah
Try another browser, edit the url in the location bar
Lords
Try another browser, edit the url in the location bar
changed multiple browsers still getting same error
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
Lords
Disable secure redirect
I tried it Charly
Charly
I tried it Charly
Ok then I don't know who or what is redirecting that's not normal behavior
Lords
Ok then I don't know who or what is redirecting that's not normal behavior
till yesterday it is working fine charly from today only I am facing these error
Believe
Try to run on different port
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?
Willi@m.
Is there a site where you recommend for learning databases in Django? I find it hard to follow it's documentation
Porri
someone use django-select2 and context_processor to send home template? thanks
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
Mohsen
there's nothing wrong in having a separated app for api
having an app only dedicated for api and another app for showing it on browser is ok?
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
the web application should meraly render the html templates the html templates should call the api using JS
Mohsen
the web application should meraly render the html templates the html templates should call the api using JS
do you have any references about how to write my api to be suitable with js? because im not going to do anything with js or html
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
Mohsen
And it happens again and again when I reload the page
for avoiding this cut and the paste the url but idk the logical reason for this it should be something abou cookies or smt like that
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
do you have any references about how to write my api to be suitable with js? because im not going to do anything with js or html
API are used to do REST/graphql requests how else do you use them? it's a huge scope, there're a lot of things to design properly api
Mohsen
API are used to do REST/graphql requests how else do you use them? it's a huge scope, there're a lot of things to design properly api
i thinks i should be talking with my friend that's going to write the front end i thought there is a particular and recommended structure for api outputs
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?
Muflone
rest i guess
How do you use your rest API?
Mohsen
right now im using curl for testing but i will call it with Js as you told me
Muflone
right now im using curl for testing but i will call it with Js as you told me
Then the 2nd application with the templates doesn't use the API?
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
Muflone
whats are your thoughts on django rest frame work
DRF is your right choice, there is nothing better to adopt