Amir
I told u now i have 3 users Bcs i wanted to work with different users
Amir
I have nothing to do with groups and I only created 3 users who can create articles
Anonymous
Guys please good day
Anonymous
Can I ask a question please
Anonymous
Please I want to Create an Image Slider just like the Carousel in Bootstrap
Anonymous
with Django
Anonymous
I have already created my models
Anonymous
Class Image(models.Model):
Mirco
Please I want to Create an Image Slider just like the Carousel in Bootstrap
it's the same thing like you'd do without DJango
Mirco
the only thing you need to pass the image url from the model via the view
Doragonsureiyā
Class Image(models.Model):
Rule 5️⃣: To share code or error tracebacks, use an online pasting service like: - https://del.dog - https://dpaste.org - https://linkode.org - https://hastebin.com - https://bin.kv2.dev If you posted a wall of text, go back and delete it.
Conditional elector of HRE
Hello everyone! How to transfer the nickname of the user who logged into the model? This does not work: default = User.username
Hossein
Hi I have a question about google api I want to use geocoding api But I cannot create a billing account Is there any way to geocoding addresses with my limitations?
Anonymous
https://del.dog/tofestacex
Anonymous
And at the index templates here's the code I wrote
Anonymous
https://del.dog/osufuttasa
Anonymous
Please any Help with this please????
Rahul
I am trying to implement a filter functionality in a realtime chart which shows dynamic data fetched from database using Django. The Values of the features used for filtering are to be passed to the server so that it will send the appropriate data. I am confused about how to manage the values of the features in the front-end. Any idea or suggestions. Please help.
Vitaliy
Hello everyone! There is a dict of dicts like: {'name':{'qty': int}, ...} I have to run through range(qty) for each name How can I do that in Django template? Trying to do something like this: {% for name, values in dict.values %} {% for i in range(values.qty) %} # Error here! (There is no range func in Django template) # do something here ... {% endfor %} {% endfor %}
Shay
hi, im looking for some one who knows django channels and can help me with a small real time chat project i will pay for helping
Ghorz
Hi guys Today i finished an essential django training (I'm experienced programmer in Cpp and Asp) Now I've a questtion. Imagine that you have an Enterprise django project!!! Whichh architecture you will use? Which design pattern? Even in your project dir structure
Stick to Django design architecture More like Model-View-Controller But it's actually Model-View-Template If I am to propose, it will be Model-View(API)-Consumer(any front end consumer, react, angular, vue, flutter, android/ios)
Nurgazy
how to generate unique number for integerField?
Anonymous
ModuleNotFoundError at / No module named 'myprojectname' Request Method: GET Request URL: http://127.0.0.1:8000/ Django Version: 3.2 Exception Type: ModuleNotFoundError Exception Value: No module named 'myprojectname' Exception Location: <frozen importlib._bootstrap>, line 984, in _find_and_load_unlocked Python Executable: C:\Users\User\Envs\hos\Scripts\python.exe Python Version: 3.9.5 Python Path: ['C:\\Users\\User\\Desktop\\project\\on_market', 'c:\\users\\user\\appdata\\local\\programs\\python\\python39\\python39.zip', 'c:\\users\\user\\appdata\\local\\programs\\python\\python39\\DLLs', 'c:\\users\\user\\appdata\\local\\programs\\python\\python39\\lib', 'c:\\users\\user\\appdata\\local\\programs\\python\\python39', 'C:\\Users\\User\\Envs\\hos', 'C:\\Users\\User\\Envs\\hos\\lib\\site-packages'] Server time: Tue, 25 May 2021 22:36:19 +0500
Anonymous
help
SpyDie
ERROR THROWN BY SYSTEM ValueError at /api/v1/users/ Cannot assign "{'mobile': 7899}": "User.profile" must be a "Profile" instance. ——————————————————————————————————- SERIALIZERS.PY from djoser.serializers import UserCreateSerializer as BaseUserRegistrationSerializer from rest_framework import serializers class UserRegistrationSerializer(BaseUserRegistrationSerializer): mobile = serializers.IntegerField(source='profile.mobile') class Meta(BaseUserRegistrationSerializer.Meta): fields = ('url', 'id', 'email', 'username', 'mobile', 'first_name', 'last_name', 'password') ——————————————————————————————————— MODELS.PY class Profile(models.Model): user = models.OneToOneField(User, on_delete=models.CASCADE) mobile = models.BigIntegerField() ———————————————————————————————————
SpyDie
HELP!!!!
Mirco
HELP!!!!
no need to write in uppercase to receive help
Mirco
Could you stop writing in upper case and use pastebin please ?
SpyDie
Could you stop writing in upper case and use pastebin please ?
Yeah that's a better idea lemme do that
Krish
Need django and react native or flutter developers perminent or freelance
SpyDie
https://pastebin.com/rvCyiPCt
Krish
React JS ??
React native app Devloper, django rest framework
Aatman
I want to edit some excel file give option to user download it. How can i do this task ?
Doragonsureiyā
Need django and react native or flutter developers perminent or freelance
Rule 🔟: Job-related offers are only allowed in the offtopic group. To not be considered spam, Job offers must include: • Skillset/techstack • Contact information • Brief job description • Pay figure • And can only be posted in @PythonOfftopic.
Ray of Hope
Guys need help ! Anyone know how to integrate Paytrace payment gateway with django app ?
Samson Davidoff
Hi Does anyone know if there are more job opportunities for Django in the US state of California or for asp.net core?
sarth
which hosting is better to purchase for django aap as a beginner, please suggest
ma
plz i need help on django
ma
i need to do authentification with ad
pat
I have a json file with content changing every 10 minutes.. How to show it dynamically in templates? Do I need to put json data in model ? Or using Ajax? I'm lost plz halp
Anonymous
It doesn't work
Adnan
I have a json file with content changing every 10 minutes.. How to show it dynamically in templates? Do I need to put json data in model ? Or using Ajax? I'm lost plz halp
you can read the json file in views.py and return render your template and the content of json file as template context
pat
you can read the json file in views.py and return render your template and the content of json file as template context
Yes, but if I do that, I must restart the server to refresh the content.. Is there a way to refresh the content automatically?
Adnan
Thanks I will try
you're welcome
Roshan
Django not loading static files if DEBUG= False
Roshan
?
Deleted
pls help: https://stackoverflow.com/questions/67721855/delete-password-last-login-superuser-status-groups-user-permissions-filed
Shivam
In django possible with mysql database
Shreya
I have a browse button on a web page, now i want to open a particular directory every time i browse for some file. How can i set a default directory path with browse button in django ??? Can anyone help me out ??
Nimesh
Charanpreet Singh
Hello, I am using blacklist token app to blacklist the tokens for log out functionality. But even being an ADMIN, I cannot delete the outstanding tokens manually, how can I solve that?
Charanpreet Singh
https://github.com/jazzband/djangorestframework-simplejwt/issues/266#issuecomment-820745103
Charanpreet Singh
I referred to this but it is giving me an erroe
Charanpreet Singh
Error*
Charanpreet Singh
AttributeError: module 'rest_framework_simplejwt.token_blacklist' has no attribute 'admin'
Charanpreet Singh
Could someone help me resolve this
.
hello I have a post model which has a like(m2m) and user(forgeinkey) model field and Im trying to check if the request.user has liked the post and if they have, I should show them a red heart button else a blue heart should be shown, now since there are multiple posts and likes, Im looping through each like object to check if the request.user has liked it or not. Unfortunately for some reason, I couldn't implement a good logic and I see like button for every user. Some help would be appreciated.
.
https://hastebin.com/totazawubi.xml
evakuator
Please solve the problem
ann
Can I save Image filename only to database instead of whole path?