Harish
No. It finished very fast (auto-logout with 401)
Ædel
hey, im creating a simple blog app. how can i enable the users to comment on portions of the blog text?
HRITIK
We use this symbol (|) in django what does it indicate
HRITIK
In templates
HRITIK
What does this indicate
HRITIK
Plz eleborate
Ædel
Plz eleborate
it's like pipeline in unix systems google django template filter
ann
how to send email asynchronously using Celery and Django-Celery-Email
Anshu
how to send email asynchronously using Celery and Django-Celery-Email
You can use this article it's for the same. https://medium.com/@anshu-dev/sending-django-email-using-celery-bf20e07ce04f
Dd
how to create django Rest api server which returns fibonacci series with given range of numbers
5P34R
how to create django Rest api server which returns fibonacci series with given range of numbers
get a input from user and do the fibonacci stuffs then serialize or render as json the output
Alex
how to send email asynchronously using Celery and Django-Celery-Email
0 You had to try to google that question first 1 The same way you would done it without celery - create a function that takes necessery arguments and actually sends emails. Define it as a celery task and then call it delay/apply_async when you need it.
R
Inserting values in django forms are not getting stored sqlite3 database
R
Anyone plz help
Meraj
What is actully awit ?!
игорь/igor
Inserting values in django forms are not getting stored sqlite3 database
form.save() for model form. Watch some YouTube tutorials or read articles before asking. Please.
Sanket
Hi , i am using django , and inside it i added bootstrap carousel , and added images from my pc , but those images just wont display , instead when i use web API to display images they work perfectly fine , or when i create a seperate HTML document and try to run it , it works perfectly fine , but it wont run in django
Zvs
Hello guys, what to do if I forgot to pull and pushed into the branch, and 1 migration was erased where there was a dependency, how can I fix it now?
Harish
is it possible that Django took a very long time to prepare a response to these requests?
@MaxZhurkin @alkalit Thanks for your help. Found the issue & Fixed it.
Kaushal
hi guys so i have connected a postgres database to my django project and the host for me would be localhost but for another developer who wants to connect to that database has to put what as the host name, do i need to enable port forwarding in my router ?
Sanket
Did you follow the standard django templating rules.
I created a folder named templates , and then created home.html , about.html and contact.html , i added templates in the DIR in settings , my images are in the templates folder , is there something wrong with it?
Anonymous
what is the best place to put rest_framework pagination classes
Anonymous
?
Alex
what is the best place to put rest_framework pagination classes
If you have a set of views put them in a views.py. If you have a bunch of models - models.py. If you have many pagination classes, then.....
Anonymous
how can i learn rest api in django
Alex
If there are tens of classes and they have sophisticated logic, you can create even a package. Like models/ __init__.py foo_models.py bar_models.py And then in the __init__.py - from .foo_models import A, B, C; from .bar_models import D, E, F. So the clients of the original app/models.py could still import them.
Anonymous
flask or django rest api ??/
Doragonsureiyā
how can i learn rest api in django
Are you looking for Django REST Framework documentation? Here you have it: https://www.django-rest-framework.org/
cj
flask or django rest api ??/
it's like asking: a tomato or a pizza? ¯\_(ツ)_/¯ also you're in a django group, what kind of answer do you expect? try them both, and use the one that fits your needs
Anonymous
i want to be a django developer and i want to work in some project can any one add me in group for developing some web apps
Anonymous
Alex
real time working projects i mean
Like the django site itself. Or python.org. And many many other
Anonymous
DEPLOYMENT CONCEPTS
Alex
DEPLOYMENT CONCEPTS
You remind me a person standing in a field of ripe wheat and asking "What I'm going to eat?"
Alex
DEPLOYMENT CONCEPTS
All these ARE real working projects and what is more important - they are well documented. So you can check any string of their code by git blame to get insights on why it was done that way. And yes, there are deployment and ci/cd configs.
Anonymous
Hello people
Anonymous
I have a little big problem, and I don't know how to proceed
Anonymous
I have a project with multi DB using router, and in local all is running ok when i try to use the migrate, i mean all tables are created in postgres DB, but when I do the same in production, only the django_migrations table is created
Anonymous
I can dump my local DB and use in production and the API run 100% fine, but again the problem arrive when I want o add for example a filed in DB with a migrations
Anonymous
makemigrations run ok, migrate run ok, but nothing change in DB
Anonymous
I already delete all migrations files and re-create the migrations, and migrate with or without fake, but nothing happens
John
Hello i need some one who can help me about custom Django user and create different type of use with onetoonefield, and signal. 🙏
Maxim
I have a project with multi DB using router, and in local all is running ok when i try to use the migrate, i mean all tables are created in postgres DB, but when I do the same in production, only the django_migrations table is created
migrations are pretty specific you shouldn't do anything with them without understanding what you are doing there are several approaches to avoid migration problems one of them: 1. only one centralized set of migrations is used everywhere 2. migrations are created along with adding / changing / removing model code 3. migration files are committed along with the model code 4. manual edits to migrations are made only before commit and before migrations are applied anywhere 5. migration files are never deleted 6. on the database migrations are never canceled 7. no changes are made to the django_migrations table manually
Anonymous
yeah totally all the points, I really did many moves testing changes, but my real problem is
Anonymous
I have my project with the origin migrations
Anonymous
a clean database
Anonymous
and when I use migrate, only the Django_migration table is created
Alex
show the code
Anonymous
I can't paste the code like image
Doragonsureiyā
I can't paste the code like image
Read the rules before any activity: @PythonRules
Anonymous
https://dpaste.org/zCUY
AceT0ne
I m using custom form and pictures is not getting saved in desired place tough when used django admin panel its getting saved
Alex
https://dpaste.org/zCUY
shot in the knee
Alex
None means no db. You have to provide actual DB name from your DATABASES
Hamid Reza
Hi everyone, I'm having some problems when deploying using gitlab ci cd, it gives me this error when I run "makemigrations" command: django.core.exceptions.AppRegistryNotReady: Models aren't loaded yet. I put the DJANGO_SETTINGS_MODULE and DJANGO_ALLOW_ASYNC_UNSAFE environment variables but it's not working
Anonymous
None means no db. You have to provide actual DB name from your DATABASES
I already try return 'dbwrite' instead of none just to try but same result
Anonymous
I don't understand is why only the migration table is created
Anonymous
and the others are not created and it does not throw any error
Alex
and the others are not created and it does not throw any error
I still advice you to check your router. Or remove it at all (which will be better, imo). > it does not throw any error Which is DB router's behaviour.
Swamy
Create a registration page which saves the email and mobile number encrypted in the db. How to do it django framework please give suggestion
Sreekanth
Anyone have done django mini projects pls ?
Doragonsureiyā
Anyone have done django mini projects pls ?
Don't ask meta questions like: "Any user of $x here?" "Anyone used technology $y?" "Hello, I need help on $z!" Just ask directly! The better you are at explaining the problem, the more likely you are to get help. Asking smart questions
Sreekanth
For practicing and understanding purpose because many recruiters asks any project you do so that i want help..
Hansric
Hey community, I have a scenario. 2 models model A : resourceid, acc, app, name, date, type. modelB: resourceid, type, date ModelB has rows which are to be excluded from rows in modelA based on resourceid . Data in Model A get refreshed everyday whereas in Model B it stays and keeps getting updated with rows which user wants to exclude. How can I achieve a get API which will only return rows from model A which are present in Model B
Anonymous
Would you guys like a Django admin theme made with tailwind ?