Ranken
I want to be able to access data posted from a form and send those data directly to the dummy backend server.... I'm stuck
The
Anyone?
It's not too hard
Kenechi
I need help with bootstrap modal with jQuery and ajax in Django The modal doesn't hide after button is clicked.. In the console it says, .modal('hide') is not a function...
Deleted
https://stackoverflow.com/questions/68203474/init-a-variable-as-a-user-instance-in-django-view-function
Deleted
Hey guys, how to init a variable as user instance in view function in django?
ꪉꫝꪖꪹᦋꪖꪜ
Can anyone pls tell me how to use django-appointments library as i am making doctor appointment system?
Doragonsureiyā
Can anyone pls tell me how to use django-appointments library as i am making doctor appointment system?
Maybe anyone is here, yes, but they are not obliged to read everyone's message here neither to reply to everyone's message, if someone wants to reply to your message, they will do that, just don't try to draw attention to your message writing "anyone?" every 5 minutes, that will lead you to be warned for SPAM/Flood, just be patient or use Google/DuckDuckGo to research about your question instead of wasting time here waiting for people to do your work. Have a nice day 😊
Vinod
I have 5+ years of experience in software development (Python, Django, Django Rest, Spark, SQL, Microservices, AWS & Azure basic, GIT). I'm ready to contribute on any projects. If you are interested then reach out me. I can spend 3-4 hrs per day.
Md
Hi anyone can tell me pytest caplog functionality
Anonymous
Hi, where is business logic usually written?
mukul
it is possible to display objects of a seprate foreign key models in a single row or page in admin site
Nikita
Hi! Can everyone share open source django repos? I searched but I came across only student projects with the appropriate quality of the code.
Sahil
!res
Doragonsureiyā
Check out PythonRes, a channel for Python resources - video courses, pdf books, tutorials and other info to help you learn Python.
Anonymous
Hi..will drf support's basic authentication for mobile applications?
Anonymous
Any one?
Anatolie
how to create an authentication model with BaseUserManager, AbstractBaseUser ? I need the fields with the email,first name, last name and number
Anatolie
help me
Abdulaziz
how to create an authentication model with BaseUserManager, AbstractBaseUser ? I need the fields with the email,first name, last name and number
model from django.contrib.auth.models import User class Profile(models.Model): user = models.OneToOneField(User, on_delete=models.CASCADE)
Anatolie
yes
Abdulaziz
yes
email,first name, last name and number about these you can create from form
Anatolie
not like this, that's about it
Anatolie
from django.db import models from django.contrib.auth.models import ( BaseUserManager, AbstractBaseUser ) # Create your models here. class User(AbstractBaseUser):
Anatolie
I started but the information is too little or outdated
Anatolie
from django.db import models from django.contrib.auth.models import ( BaseUserManager, AbstractBaseUser ) # Create your models here. class User(AbstractBaseUser): STATUS = ( ('SA', 'Super Admin'), ('o', 'On loan'), ('a', 'Available'), ('r', 'Reserved'), ) firstname = models.CharField(verbose_name='First Name', max_length=25) #2lastname = models.CharField(max_length=) email = models.EmailField(verbose_name='email address', max_length=255, unique=True, blank=False) #4password = models.CharField(max_length=) #5phone = models.CharField(max_length=) #6country = models.CharField(max_length=) #7city = models.CharField(max_length=) #8gmt= status = models.CharField (max_length=12, null=True, choices=STATUS) created = models.DateTimeField(auto_now=True, null=False) modified = models.DateTimeField(auto_now_add=True, null=True)
Muhajir
hi guys, I have some issue with geodjango, I got this error issue: "Uncaught Reference Error: MapWidget is not defined" but when I do re-load the homepage, it's working normally in the admin page maybe somebody know how to fix it
Deleted
https://stackoverflow.com/questions/68207438/how-to-use-jquery-selector-to-select-id-of-django-template-variable-value
Deleted
how to use jquery selector to select id of django template variable value?
Nikita
how to use jquery selector to select id of django template variable value?
You can't mix python and js it's not work. Use just $('#id')
Deleted
You can't mix python and js it's not work. Use just $('#id')
can not use id as it's in a for loop so I am not sure the number of item and id before rendering
Deleted
You can't mix python and js it's not work. Use just $('#id')
the id is under {% for obj in query_results_book %}, so I am not sure how many id would be generated
Zerat
Who has been working with Django for long time? What other libraries you use with Django in your day-to-day jobs?
Yaroslav
hi, everyone! what are the best practices on creating kafka topics within django? what do you think regarding kafka topic creation in migrations?
S
Hey folks, we are looking to automate functional testing of the rest API developed in Django. Any pointers
andrey
hi. don't you have a working example of MongoDB application for Django via MongoEngine? i'm confused by necessity to comment DATABASE section in settings.py and not so sure about set of installed libs like: pymongo, dnspython, mongoengine. Would appreciate for the link to github if any. Thx in advance.
Hansric
Has anyone implemented drf-api-logger or drf-tracking to track API request ? I have implemented it but it is not sending any logs to dB table
mukul
class Package(models.Model): package = models.CharField(max_length=255) class Price(models.Model): package = models.ForeignKey(Package, on_delete=models.CASCADE) price = models.DecimalField()
Mohit Joshi
Hey guys I have recently done blog project with django.. can you suggest me some more beginner friendly project that I can do in django
Сидредин
It is best idea to study DRF too
mukul
Create Query on these models and pass it on context.
i need both the models in a sequence like — if the first is question then the second will be the answer of that
William
i need both the models in a sequence like — if the first is question then the second will be the answer of that
Then, create a query for the package. In template retrieve price value from this query
Mohit Joshi
Actually I have been following up Corey schafer tutorial and added some more things into that
William
Only with django
Then, create the same project with the Django rest framework.
William
can u please explain it more
Check google how to create queryset and pass them on context.
Mohit Joshi
Then, create the same project with the Django rest framework.
Actually I wanna make some more project in django to get my hands more into it
William
Actually I have been following up Corey schafer tutorial and added some more things into that
With this project, you can create 2 more duplicates. 1. Django rest framework with function-based views. 2. Django rest framework with class-based views.
William
Actually I wanna make some more project in django to get my hands more into it
Then, create a Todo project with user authentication.
Nikhil
https://www.nikinikinik.in/nnn/nsoftware/scraper/websites-data-extraction
Darta
is it possible to pass variable to url like this: <a href="{% url {{ back_link }} %}">
Anonymous
<a href="{℅ url 'back_link' ℅}>
Darta
<a href="{℅ url 'back_link' ℅}>
it returns error i pass back_link variable from view
Python
Hi, How can I save address in database that I get from posman api ??
Mohit Joshi
Anonymous
it returns error i pass back_link variable from view
Not sure why but first try closing the a tag. <a href="{℅ url 'back_link' ℅}> Back </>
Hansric
How do we add apiview URLs to browsable page ?
Anonymous
How do we add apiview URLs to browsable page ?
use the name of the url or the actual path of it
Hansric
use the name of the url or the actual path of it
I can access it with this but how do I list on the home page
Hansric
The API root only displays endpoints which are in router register but not from urlpatterns
cj
It's Django and bootstrap
but your problem is not related to django at all
Python
request.url
So how can I save the address that I get from https://api.org/example/ and save it into the database, And how can I set https from that api @pyflare
Python
Which kind of address ?
Hash address that api give me in postman
Devo
response.text
Devo
Basically using postman we can only test and check results.. if you want it to call GET or POST locally to see the results , use requests.get in python or axios.get('') in JavaScript
Devo
@pyflare correct me if am wrong?