Amir
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
Mirco
the only thing you need to pass the image url from the model via the view
Mirco
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?
Mirco
Hossein
Anonymous
https://del.dog/tofestacex
Anonymous
Anonymous
And at the index templates here's the code I wrote
Anonymous
https://del.dog/osufuttasa
Conditional elector of HRE
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
Abdalwhab
Abdalwhab
Mahdi
Ghorz
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
SpyDie
Mirco
Could you stop writing in upper case and use pastebin please ?
SpyDie
Krish
Need django and react native or flutter developers perminent or freelance
SpyDie
https://pastebin.com/rvCyiPCt
SpyDie
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 ?
SpyDie
Mirco
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
Chapi
Mahdi
Dev
ma
plz i need help on django
ma
i need to do authentification with ad
Ali
Ghorz
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
Adnan
pat
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?