🎉🅹🅰️🅻🅾️🅻🅸🅳🅳🅸🅽🎉
Please try to use pythonanywhere.com.
my site uses API, however it is not supported on pythonanywhere.com
H🅴X🧶
they are all paid,are there any hosting that are free for test
I used vercel and render. It's free but if you want some packages you have to pay
🎉🅹🅰️🅻🅾️🅻🅸🅳🅳🅸🅽🎉
🎉🅹🅰️🅻🅾️🅻🅸🅳🅳🅸🅽🎉
You have to buy if you want to host
my site was about prayer times
Nishanth Siraj
Nishanth Siraj
Free
Spatz
Okay
Spatz
Is there anyone who can use MongoDb with MySQL in Django project?
Charly
Is there anyone who can use MongoDb with MySQL in Django project?
Depends on how you want to use it. For a main db (where you store your models) is a bad idea, as a secondary db is fine.
clouded
why do you say that ?
Because it does not look like it is supposed to. Note that I'm talking about how the code was pasted in Telegram, not how it has been written.
Eclair
Can i make a admin-user chat in django admin?
Siddharth
Can i make a admin-user chat in django admin?
u should overwrite the admin template
One
Hello guys. something really funny with my django app. when i go to the site directly by entering the url, it opens up the page just fine. however, when i click on a link from a mikrotik wifi captive portal that i set up to redirect me to the same url, it opens up the page in a distorted format as if it does not have js and css. what could be the reason for this? Anyone experienced this?
Newton
Hey guys
One
The developer tools of your browser are supposed to be able to help you understand what's wrong.
Thanks, will do that. Seems the issue comes from mikrotik's bandwidth restriction for its walled garden and little to do with django. I am researching to know more about it.
Alex
Has anyone enriched a token with a claim
Dutchq
Hello I have a question please, so when u create a folder fr your project on the desktop and run the manage.py start project command why do u need to put another name again? Given that the folder you created on the desktop is the project folder? and also please when I creat a virtual environment, i can't access my manage.py from there until I step out why? any help thanks
JayJo
Value error didn't return http response object
Dutchq
Cause the code inside manage.py is set to detect folders in same directory where it was made
OK thanks what about the virtual environment when am in the virtual environment and run the manage.py it doesn't go but out of the virtual environment it does
Davide
Hi all, someone have an idea how to make a query with three left join between a table and three other tables ? It seems is not possible to do something so simple with the orm in django: https://dpaste.org/tmUHr gwiot is the main table, gwiot_type/status/sim are side table and there is a FK in gwiot pointing them, gwiot_ipvpn have a FK pointing the pk of gwiot. I can find a way to get the select described. I can use select_related() to join gwiot_type/status/sim with gwiot, and to join also the gwiot_ipvpn the only way is to use value with a field of this table, but in this way I need to declare every field from all the tables, but fields from gwiot_type/status/sim are not recognized.
Dutchq
What do you mean by it doesn't go ?
when am in thw virtual environment the error says directory not found
Maxim
when am in thw virtual environment the error says directory not found
we can't help you if we have to guess at every detail
Pedram
OK thanks what about the virtual environment when am in the virtual environment and run the manage.py it doesn't go but out of the virtual environment it does
You should go directory project If you’re venv directory other folder and project is other, you can activate venv in directory and go project directory for run django . You should install django when venv is active, then you can
Siddharth
when am in thw virtual environment the error says directory not found
You made project in wrong directory that's why
.
I have configured media root, url Installed pillow Configured upload to attr in my model But django says like "GET media/posts_images/photo.jpg HTTP/1.1" 404 2440 But url he cannot reach is given right from its model...
Kingamir86
Hello have view I need to it call once day automatically in django how should I do
Kingamir86
It should call automatically everyday
.
I have configured media root, url Installed pillow Configured upload to attr in my model But django says like "GET media/posts_images/photo.jpg HTTP/1.1" 404 2440 But url he cannot reach is given right from its model...
I tried to change upload to value, open an image from file manager, photo is uploaded where it meant to be. But django says that in this url there is no anything What can cause this, how to fix this?
.
set the media root directory in settings.py
I have already configured that using os.path.join base dir, media
Siddharth
I have already configured that using os.path.join base dir, media
then you provided wrong directory (also check the debug, weather it is true or false u have to modify the urls of project )
Siddharth
I added urlpatterns += staticfiles_urlpatterns() Or should i do something else?
#settings.py # Define the base directory where media files will be stored MEDIA_ROOT = os.path.join(BASE_DIR, 'media') # Define the URL prefix for media files MEDIA_URL = '/media/' # urls.py (Project) After Urlpatterns : if settings.DEBUG: urlpatterns += static(settings.MEDIA_URL, document_root=settings.MEDIA_ROOT) #models.py media_file = models.FileField(upload_to='your_upload_path/')
Rupan
The integration of reactnative and django seem little difficult
Mirco
The integration of reactnative and django seem little difficult
Nope, just develop your APIs with Django and that's it backend side React native will just consume APIs
Rupan
So I should simply write the API view and serializer and i should mainly focus on it . Am I correct
Rupan
Thankyou
Mirco
Doragonsureiyā
Thankyou
You're welcome! 😊
Anonymous
Are Logics of view.py requires changes if database is migrated from SQLite to MySQL or vice versa?
ERMIA
The integration of reactnative and django seem little difficult
Just ajax request, it is not related to any backend as long as you know hoe to work with apis it gonna be easy
ERMIA
Are Logics of view.py requires changes if database is migrated from SQLite to MySQL or vice versa?
Dhanjo implements itself they way of connections if you have used models dont worry, unless you made manual db query which ends up with thread error
Siddharth
Just ajax request, it is not related to any backend as long as you know hoe to work with apis it gonna be easy
Yh you re right, using ajax or jQuery both are easy and Ajax gave you freedom of asynchronously change the content which is best quality of it
Siddharth
Siddharth
Yh js already provide many benefits of using different libs to handle api
Newton
Hello Guys,i would like to know how to build APi in django
Newton
Where can i start?
Charly
Where can i start?
Do you already know django basics?
Charly
Yeah
Then go for Django rest framework
Tejas
Hi can anyone tell me websites where I get impressive ideas for django website
Doragonsureiyā
Hi can anyone tell me websites where I get impressive ideas for django website
Adding the word Django to your Off-Topic question doesn't magically turn it to a Django related question, so delete your question here and move to the @PythonOfftopic group and ask there.
Tejas
I am new to Django and currently working on final projects. I would appreciate some additional ideas to enhance my logic.
Doragonsureiyā
I am new to Django and currently working on final projects. I would appreciate some additional ideas to enhance my logic.
Looking for Django tutorials? you can follow these three recommended ones: * Official documentation and tutorial * Tutorial from MDN * Tutorial from django-girls
Charly
I am new to Django and currently working on final projects. I would appreciate some additional ideas to enhance my logic.
Don' t ignore hte bot message. Thats offtopic this group is not for project ideas but code specific questions.
Charly
Be easy buddy I am new sorry 😔
I' m just telling the hting because you ignored the message, it has nothing with be new
Tejas
Okay 👍
ERMIA
Hello Guys,i would like to know how to build APi in django
Start with django rest framework but before make sure getting informed about api basics like json, http methofs & basic djanyo knowledge
Ahmed
I there any future plan to add support for rest api without third party framework or plugins like drf?
Kevin
valueerror:field 'no_of_people' expected a number but got ''. Anyone help solve error
ERMIA
I there any future plan to add support for rest api without third party framework or plugins like drf?
Its reinventing the wheel when drf is working out perfectly there js no need to make it again because it might cause conflict between developers and teams