ㅤㅤㅤ
Every todo must have its "writer" field
ㅤㅤㅤ
In that field should be assigned writer's id
ㅤㅤㅤ
As foreign key
ㅤㅤㅤ
Then when you call view to show todos, it must filter according to request.user.id
Bunty chhatri wala..
Sacs
How can i upload a screen shot here
I have a problem
Sacs
I can't copy the error
Because am using pydroid3 to run my django
Anonymous
what is the update_session_auth_hash function?
Bunty chhatri wala..
Anonymous
How can I access models from one app to another app?
It is giving me module import error
Martín
hello, I have tried to launch tests in a cookiecutter-django project like this:
python3 manage.py test --settings=config/settings/test.py
and a ModuleNotFoundError has raised
Martín
both from terminal and PyCharm inside the virtualenv
Martín
I even tried the absolute path in the terminal
Martín
ModuleNotFoundError: No module named 'config/settings/test'
Muflone
Muflone
Np
Anonymous
config.settings.test
How can I access models from one app to another app?
It is giving me module import error
Muflone
appname.models.model
Anonymous
Its giving me module import error
Orack
Sweetie
What's lowest price I can get a django template that will enable me to launch a paid api service.
I will develop the api logics myself, just need a basic app that allows users to choose package and make purchase
Each package gives set number of api call credits.
Zaryab
Hey Django Devs..
Zaryab
Wanted to know if any one has come across this error,
Zaryab
Reverse for 'detail' with arguments '('',)' not found. 1 pattern(s) tried: ['(?P<pk>[0-9]+)/$']
Zaryab
Please help me out
R
R
Sweetie
Depends on many factors, why cant you develop it yourself?
I do not have a academic programming background. Self taught python myself.
I have been trying to teach myself django for a long time now, have tried many tutorials django docs and everything.
I do have build things with cookiecutter. But it's just I am unable to complete any project.
Tutorials are not very similar to real life examples.
I think if I get a base template then I can successfully launch a product and learn more efficiently.
Dextroleav
Maz
Dextroleav
Dextroleav
https://youtu.be/LLojNj_n7XE
Anonymous
群里有没有搞安全的
Anonymous
群里有没有搞安全的
A7hul
群里有没有搞安全的
Like a normal teligram group security...
R
Sweetie
Thanks will look at it
Anonymous
It depends how is structured your code
>Main_Project
------>app1
------>app2
I am trying to import models of app2 that is Accounts in app1.
from Main_Project.app2.models import Accounts
But its giving me an error
ModuleNotFoundError: No module named 'Main_Project.app2'
Dextroleav
Dextroleav
Anonymous
Anonymous
Dextroleav
First run makemigrations
Dextroleav
Then migrate
Anonymous
Anonymous
Rajat
George
Rajat
Like how to use serializers properly with restframework for deployment!!!, and implementation of machine learning models in django. Was my question? I hope you guys can get it now?
Bayarkhuu
Hello
Bayarkhuu
Page not found
Bayarkhuu
My web not working?
Bayarkhuu
How to solve this
Bayarkhuu
???
Anonymous
How to send facebook like Notification in django?
Dextroleav
Anonymous
Which api?
Dextroleav
There are so many api's
Dextroleav
Do a Google search as per your requirements
Muflone
Anonymous
Hello, who can help link HTML pages from templates?Since I can explain a lot of information in a pm.
Dextroleav
Dextroleav
Maja Baki
Anonymous
Hello everybody
Help me please
deployed the server wanted to open the site locally gives django encoding error
Why???
Anonymous
How can I select another field in foreignkey instead str method of the model?
Anonymous
I have two models
Anonymous
class Porumbei(models.Model):
""" Creare tabel Porumbei in baza de date """
tata = models.ForeignKey('Perechi', to_field='mascul', on_delete=models.CASCADE,
related_name="porumbei_masculi", null=True, blank=True)
mama = models.ForeignKey('Perechi', to_field='femela', on_delete=models.CASCADE,
related_name="porumbei_femele", null=True, blank=True)
....
Anonymous
class Perechi(models.Model):
""" Va fi folosit pentru salvarea perechilor in baza de date """
crescator = models.ForeignKey(settings.AUTH_USER_MODEL, on_delete=models.CASCADE, null=True, blank=True)
boxa = models.PositiveIntegerField(primary_key=True, unique=True)
sezon = models.CharField(max_length=4, null=False, blank=False, default=datetime.now().year)
mascul = models.ForeignKey(Porumbei, unique=True, on_delete=models.CASCADE, limit_choices_to=Q(sex="Mascul"),
related_name="perechi_masculi")
femela = models.ForeignKey(Porumbei, unique=True, on_delete=models.CASCADE, limit_choices_to=Q(sex="Femelă"),
related_name="perechi_femele") \n def str(self): \n return self.boza
Anonymous
In Porumbei tata field I want to select mascul field from Perechi. How could I acheve that?
Anonymous
How do I set up my computer to develop using Django. I didn't understand the installation process online. Someone to make it simpler please🥺
Anonymous
u just first install python 3.7 or similar versions of python
Anonymous
"pip install django" to install django on your computer
Anonymous