🧚♂️
🧚♂️
Right ?
Dark
Hii guys,
In docker-compose.yml do we need to define sqlite as an service or have an another container like PostgreSQL?
Rohan
Dark
Kene
Hi guys. Has anyone created an asynchronous task without needing to use a task scheduler like celery? Maybe using Python's async...await?
Charly
Charly
What specific thing you need to do, as many things could make slow response times if it needs to wait
Oxytocin
Hi
I have two models named task and group
Group has a m2m field to Users model
Task has a m2m field to group
Now I wanna get a username and return all tasks that this user is authot of or in one of its groups
How can I get the queryset?
(Im working with DRF)
Psami
Psami
Task.objects.filter(groupuserusername="username")
Try this
Psami
class User:
username = models.CharField(max_length=255)
pass
class Group(BaseModel):
user = models.ManyToManyField(User)
class Task(BaseModel):
group = models.ManyToManyField(Group)
user_tasks = Task.objects.filter(group__user__username="username")
👑 Dharmzeey
Please I have issue with django project on cpanel. I added some variables in environment variables of my python app, but I can't retrieve it with the os.environ.get("variable_name")
👑 Dharmzeey
José Jorge
hi, how i can take backup of DB weekly automatically in Django and how i can restore that with an action button on app control panel
Psami
Hadi
Hello everyone
How I can be full stack developer in Django? What is the way
Med M'bareck
Any buddy have using flutter with Django here
Doragonsureiyā
Any buddy have using flutter with Django here
Don't ask meta questions like:
"Any user of $x here?"
"Anyone used technology $y?"
"Hello, I need help on $z!"
Just ask directly! The better you are at explaining the problem, the more likely you are to get help.
Asking smart questions
Noddy
Which library is good wagtail or django-cms for news blog site?
Anonymous
Please I have installed Django and virtual environment but it keeps us saying virtualenv not recognize when I try creating a virtual environment
Anonymous
I'm new here hope I'm welcome 🥺
Jaloliddin
Anonymous
Virtualenv env
Jaloliddin
try python -m venv env
Jaloliddin
this should work
Alexey
Anonymous
Jaloliddin
Anonymous
Jaloliddin
No, windows
u better create a new project and follow along with it:
make a directory for ur project
enter the directory
python -m venv [UrVenvName]
enter ur venv source UrVenvName\Scripts\activate
pip install django
....
Anonymous
Shamnad
Shamnad
use:- pip install virtualenv
Amit
can someone help me with django login authentication please
...
Hi everyone, I need help with data rendering from ORM to dropdown menu in template😊 I need to show in dropdown menu 13 000 rows with good speed, it possible to make this default Django?
MHJ
hello
i have a question about side block who can help me ?
Doragonsureiyā
hello
i have a question about side block who can help me ?
Don't ask meta questions like:
"Any user of $x here?"
"Anyone used technology $y?"
"Hello, I need help on $z!"
Just ask directly! The better you are at explaining the problem, the more likely you are to get help.
Asking smart questions
Shamnad
Shamnad
...
Мark
Hello, I'm trying to put a site on django, ubuntu 18.04 and apache on the host, I seem to have set everything up except for statics and migrations, but when I go to the site I see just navigation and source of my project
Andrew
Thanks Andrew, could you show something example with PostgreSQL if possible?
You welcome my friend
In django ORM you don't need to write any sql code whether you use mysql, postqresql or any sql database the Django ORM writes it for you you can try YOUR MODEL CLASS.objects.values (specify which fields you need) [0:14] for Data segmentation specify which part you want or you can use Django paginator seqmenting your data because you can't use your whole data because this gonna kill your database that why you need to seqmenting your data
...
Andrew
You welcome my friend
....
Hi friends
....
Any one know this concepts,
Data pusher
Django web application to recived data into the app server for an account and send it across different platforms from that particular account using webhook URLs
🧀
Google webhooks
Christian
Сашко
Hi to all. I am new to django and have a question, rather of a "philosophical" nature 😅. It is about authentication and user profiles. If I understand everything correctly, the following separation is considered the best practice: the User model is for auth-related information (username, email, password, etc.), and the Profile model is for non-auth-related information (bio, profile picture, etc.). But then what is the point, for example, of having "first_name" and "last_name" fields in the User model, if they perform a customization function and are not a "login method"?
ichux
Hi to all. I am new to django and have a question, rather of a "philosophical" nature 😅. It is about authentication and user profiles. If I understand everything correctly, the following separation is considered the best practice: the User model is for auth-related information (username, email, password, etc.), and the Profile model is for non-auth-related information (bio, profile picture, etc.). But then what is the point, for example, of having "first_name" and "last_name" fields in the User model, if they perform a customization function and are not a "login method"?
Me, thinking out loud:
Well, some things just stand! Originally some people thought it so, and it stayed all through.
🧚♂️
No module named 'allauth.accounts'
🧚♂️
No one knows how to fix it??
Сашко
Vlad
how did u create virtualenv?
There are plenty of ways to to that. My favorite is via virtualenv. There also is poetry and pipenv and the more standard venv.
Virtuaenv makes virtual environments easy because it is easy to create and to workon an environment
🧚♂️
NoReverseMatch at /accounts/login/
Reverse for 'dashboard' not found. 'dashboard' is not a valid view function or pattern name.
🧚♂️
have you met this error before?
Vlad
By the way, my name is Vlad.
I am building Django recruiting app.
I learned Django and DRF recently. I went through documentation, some tutorials, and courses for backend.
I am looking for like-minded people so feel free to message me.
P.S. I am also looking for better myself on terms of data analysis, parsing data, webscraping, making a great search engine. If you have any good resources to learn from - I'd highly appreciate that
David H
I guys, I have a question:
What is the most efficient way for obtaining an attribute on each querystet's element based on some column's values?
Vlad
David H
Values()
I was wondering about something like @property or anotate (I don't know which one is more efficient)
Vlad
Values and values list should work efficiently.
What do you mean by efficiency? Time to run the code? If that's the case, you can test the options in terms of time.
.
🧚♂️
urlpatterns = [
path('admin/', admin.site.urls),
path('accounts/', include('allauth.urls')),
path('', Index.as_view(), name='index'),
path('about/', About.as_view(), name='about'),
path('order/', Order.as_view(), name='order'),
path('order-confirmation/<int:pk>', OrderConfirmation.as_view(), name='order-confirmation'),
path('payment-confirmation/<int:pk>', OrderPayConfirmation.as_view(), name='payment-submitted')
] + static(settings.MEDIA_URL, document_root=settings.MEDIA_ROOT)
🧚♂️
yes