Mo
Show your code in views file
Results.objects.create(requestId=str(requestId), resultDetail=data1)
resultDetail is jsonfield and data1 is a dictionary
Lakshay
Suhaib_0.0
Question can I be Use only Django Without use Mysecl????
Genemator
Hadi
whats the best field for phone numbers in django forms
игорь/igor
игорь/igor
Hadi
Suhaib_0.0
Shukurillo
the first argument ("request") that is passed in the view function in django, what is that ?
Suhaib_0.0
Suhaib_0.0
Question can I be Use only Django Without use mysql ????
mojo
I have 5 fields in html for images
mojo
It is creating 5 objects in database
mojo
Can anyone help in image uploading
jūdê
Have you configured your media? In your files
mojo
Yes
mojo
Can you help in uploading 5 images without using django forms
MICRO
manage.py : The term 'manage.py' is not recognized as the name of a cmdlet, function, script file, or
operable program. Check the spelling of the name, or if a path was included, verify that the path is
correct and try again.
At line:1 char:1
+ manage.py startapp blog
+ ~~~~~~~~~
+ CategoryInfo : ObjectNotFound: (manage.py:String) [], CommandNotFoundException
+ FullyQualifiedErrorId : CommandNotFoundException
Hello friends, when I try to create a new app, I encounter such an error
Thank you for your help
Raazu
How we are tracking student present or absent (from start time to end time)based on number of login or logout times using django project
Raazu
If anybody knows please let me know
Suhaib_0.0
-How do I connect Django With a database?
Alex
then django will automatically instantiate one for you when you start querying DB.
Corteis
someone can help me with TypeError: Field 'id' expected a number but got datetime.datetime error?
Corteis
I find the solution, thanks!
mojo
Best method for image upload?
mojo
Using 2 or more image field in html
Saman
Hi
I have q
For one site that have huge online users ;
And its just crawling a price in online marketa and comapre it
For thia site
Django ia good
Or laravel??
Alex
Genemator
Anonymous
Using 2 or more image field in html
If what you want is to accept multiple files
#in your form
...
files = forms.FileField(widget=forms.ClearableFileInput(attrs = {"multiple" :True}))
Doragonsureiyā
chaygo
Hello guys! Do you have any recommendation to learn api for
chaygo
Beginners
chaygo
I dont understand api
Alex
chaygo
Rest framework
ILYOSBEK
Alex
Rest framework
drf isn't api. it's a framework (tool) to build one.
chaygo
But its framework to build api, isnt it?
Lakshay
chaygo
chaygo
Suhaib_0.0
Ionut
Hi, I'm a beginner and I don't know how to filter in django, the products from a category in the examples can also be found with subcategories, but I don't use them. Can anyone help me with an example?
Saurav
Ionut
Masih
hi
i installed a package with pipenv on my project and i can see it on pipfile
but when I run my code there is a ModuleNotFoundError
anyone know what do I gotta do?
Anonymous
Samuel
Samuel
xmas
guya django dev k liye opening h kya
Dex
guys how to solve pylint erors in vs code?
Amirhossein
Dex
Mirco
Amirhossein
would u explain this?
for example you can add "--disable=missing-class-docstring" to "python.linting.pylintArgs" in vscode settings.json and disable that checker
kasim >
How to post data through ajax to Rest Api if only user logged in.
A
Hey,
Which one of these options do you prefer?
1-writing authorization and authentication by our own in rest django?
OR
2-Using pre-existing tools which hand is?
kasim >
kasim >
class CustomAuthToken(ObtainAuthToken): def post(self, request, *args, **kwargs): serializer = self.serializer_class(data=request.data, context={'request': request}) serializer.is_valid(raise_exception=True) user = serializer.validated_data['user'] token, created = Token.objects.get_or_create(user=user) return Response({ 'token': token.key, 'user_id': user.pk, 'email': user.email })
kasim >
F
I have two entities(X and Y) those extend an another (named A, for exemple). X and Y have their own properties. In A, I have type attribute it aims to know object type. In my database I created only one table for all objects(X and Y), is it a good idea?
Now I want to create objects within a single view. I display AForm if view is called by GET method. When user choose the type of object, I must display the correct form with previous data(for attributes of A), with Ajax, before submitting.
How do I proceed?
KC
Gm everyone..
Could you please suggest me the best source to learn django
Ramadhan
hi guys, i wanna ask something...
if i create a website using django, can i put machine learning and IoT ?
Ramadhan
Chauhaan Tushar
Hii i am Tushar from Indian institute of information technology Vadodara.
I have made a challenge of 30 days in which i will be giving 4 questions on daily basis .
The one who does the maximum questions , there will prize of worth 200 rs ( funded by my pocket money that's why it is less) u can discuss any problem faced . Majority of the question will be from leetcode
see my bio for the link.
Mustafa
I am new to Django-Pyhton and I don;t know how to fix this problem. I am using adminlte by appseed.us and I when I go to create survey page I cannot access the page and shows not found. can sumone check my code and help me find whats wrong? Please DM.