Firdavs
can any one tell me why get this error
Hello! Try adding related_name
Yeganeh
Hi guys 👋 I want to make a list in template that its key and value is variable : Day[$day] = [$time1, $time2,…] Is there any suggestions for me? Thanks alot
Pedram
In temples?
view . send context to template
Yeganeh
view . send context to template
I need create this list from template I don’t have it in view before generate
Pedram
I need create this list from template I don’t have it in view before generate
ok test this : {% for o in "123"|make_list %} <div class="{% cycle 'row1' 'row2' %}"> {% cycle 'row1' 'row2' %} </div> {% endfor %}
Pedram
I need create this list from template I don’t have it in view before generate
and read the django doc : Https://Docs.Djangoproject.Com/En/5.0/Ref/Templates/Builtins/#Cycle
Macccc
hi guys , Has anyone ever used OpenWisp_ipam? I wanna remove it from my django project .
Macccc
INSTALLED_APPS = [ 'openwisp_users', 'django.contrib.admin', 'django.contrib.auth', 'django.contrib.contenttypes', 'django.contrib.sessions', 'django.contrib.messages', 'django.contrib.staticfiles', 'cmdb', 'import_export', 'openwisp_ipam', 'reversion', 'admin_auto_filters', 'rest_framework', 'rest_framework.authtoken', 'drf_yasg', 'allauth', 'allauth.account', 'rest_auth', 'django_celery_beat', 'django_celery_results', ] AUTH_USER_MODEL = 'openwisp_users.User'
Macccc
OperationalError at /admin/login/ no such table: auth_user Request Method: POST Request URL: http://10.100.79.101:8000/admin/login/?next=/admin/ Django Version: 3.2.16 Exception Type: OperationalError Exception Value: no such table: auth_user
Macccc
did you apply migrations?
i did ,but there was still an error reported
Anonymous
i did ,but there was still an error reported
Maybe delete all migrations and re-migrate if it's only in local
Jimmies San
i did ,but there was still an error reported
did you double check if the migrations have been applied correctly to that database? maybe you did only on your dev machine? but not on live stage?
Rose
User Flier has 1/3 warnings; be careful! Reason: useless hello
Rose
User John snow has 1/3 warnings; be careful! Reason: don't request DMs, help is provided in the group (rule #9)
Mohsen
I have defined the templatetags folder in the root of the project. How can I access this tag in other apps?
Anonymous
When I submit form and delete 3 data on the form which has been printed on another page with respect to the form, if I delete 3 datas im having a issue like I need to click 3 consecutive time backwards to get to the first page
Dr.Khaled 🇵🇸
Welcome I want to work on the project that if the user sends a message, an alert comes to the admin on his email, and I did that, but the problem is that when he got to the email, the admin followed the be written from / to the same email, which is the email of the admin How i can do to by the email from the "user" email to the " admin's email?" by Django?
J
Can anyone send me a source code for doing an ecommerce website..
Rose
Can anyone send me a source code for doing an ecommerce website..
We're not here to do your job for you. This group is to help you on specific issues you have in YOUR code, so you have to show the code you wrote by yourself and explain where and why you are stuck... as simple as that. 🤷🏻‍♂️
Rose
User Rishabh has 1/3 warnings; be careful! Reason: useless emoji
Vishnu
Am using a post save django receiver signal to send email when an object is created and it's working fine but the problem with that is the api response takes time to complete the send_mail() function which have to avoided. My expected result is object should be created and the response should be send to the respective request but after that only the signal should work which will improve the performance. Is there any way to do that?
Rose
User required has 1/3 warnings; be careful! Reason: rule #1: speak English
Mohsen
I have defined the templatetags folder in the root of the project. How can I access this tag in other apps?
TEMPLATE = [ { "OPTIONS": { "context_processors": [ ... ], # Built-in Template Tags (Access without tag loading) "builtins": [ "templatetags.main_custom_tags", ], # Custom Template Tags (Access with tag loading) 'libraries': { 'main_custom_tags': 'templatetags.main_custom_tags', }, ]}
Rose
User Alireza has 1/3 warnings; be careful! Reason: totally offtopic
ruthless
How to make chat api using drf
Sergio
How to make chat api using drf
It’s a broad topic but first of all you need to start from session context placeholder, special logical container that will handle users chat history. You can use models with rdb or redis in simple cases. The main challenge is that REST nature is transactional while chat thread is session based thus you need to break this using shared state between http requests. Sometime you don’t need this approach as chat bot looks like a usual website where every topic and sub topics could be url-like path the only thing you will preserve is current user place in url tree. In that case you can use plain user session as a storage for user context.
park seo joon
Please anyone with Django scrash course
DePyraxe
Help guyz why my Django doesn't refresh edited static file
Rose
User M has 1/3 warnings; be careful! Reason: here we don't recommend w3schools
Charly
DePyraxe
Thats probably caché on your browser
Clearing a caches can solve the problem??
DePyraxe
Try it
👍 thanks bro let's me try.
DePyraxe
Try it
Thanks it works.
Anonymous
hello, when i want to find the path of my pipenv for vs code with the command [ pipenv --venv ] i get the error that pipenv is not recognized
Anonymous
what should i do?
Rose
what should i do?
Your question is not related to Django. If it's a Python related question go to @Python group, otherwise please move to @PythonOfftopic group and ask there.
Ivan
Hello guys
Ivan
How do I create my first project in django
Ivan
After installing it
Charly
How do I create my first project in django
you should at least read the official tutorial for django, you can't expect to figure out how to use without reading
Ivan
I have read and thats how I managed to install and all that now I want to create my first project
Ivan
You can as well send me the tutorial and I check it out
Charly
You can as well send me the tutorial and I check it out
But you said you already read? Where you lying?
Ivan
But you said you already read? Where you lying?
Nope I was reading from w3 schools
Charly
Nope I was reading from w3 schools
No, I said official tutorial. But also that tutorial must say that
Ivan
No, I said official tutorial. But also that tutorial must say that
Okay then send me the link of the official tutorial or better still tell me how to do it thanks in advance
Ivan
Don't be lazy.
Okay then let me continue reading
ricks
How do I get django remote job guys
David
Hello someone here have experience with uuid in Django, context I add a uuid in a model user(Abstract) but when I apply the migration I have an error of duplicate, users_user_uuid_key but I don't understand that error
Maxim
How do I get django remote job guys
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.
Sahil
I have a dropdown in my django site nev bar which will show top events on click i want it to update latest events from backend how to do
Sahil
How can i refresh a specific div having django variable using ajax
Ramil
Hello everyone, guys, who worked with maps? The task is such that ~ 30,000 thousand points should be displayed on the map. I have several questions about how to cache these points in advance and how to efficiently output points from Postgres (PostGIS). I can give points from the database both by coordinates and by tile.
ali
How can I customize the django admin panel ??
.
Hello everyone! I'm doing a learning project using django and react. I have an ad model and a photo model with a link to the ad model. This is done because the ad may have a lot of photos. how do I implement the api for creating ads?
DeathLikeSilence
How can I customize the django admin panel ??
you should create some classes(what you need to customize) in your admin.py please check the Django documentation.
ali
you should create some classes(what you need to customize) in your admin.py please check the Django documentation.
No, no, I want "fully" customization all of html and css, js of page
DeathLikeSilence
No, no, I want "fully" customization all of html and css, js of page
Uhm, Ops Unfortunately, I do not have any ideas about it. But you can find things that you want from YouTube and some website I checked it and I saw some tutorials for this.
Muflone
No, no, I want "fully" customization all of html and css, js of page
You can inherit all the templates, some projects already done that
Anonymous
How can I customize the django admin panel ??
Collectstatic of admin , link or replace with your html and css
Husan
Hi, everyone Could you tell me about how to create dynamic database tables. Our project come .json data and we get it and read every fields and create key and value. Can you give me docs or example code for understanding
Rose
User Galaxy has 1/3 warnings; be careful! Reason: this is not a job board