ㅤㅤㅤ
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
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'
Martín
config.settings.test
Now it works! Thank you very much! 😁👍
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
Muflone
Its giving me module import error
It depends how is structured your code
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
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
https://youtu.be/LLojNj_n7XE
Dextroleav
https://youtu.be/LLojNj_n7XE
True talk about all programmera out there, motivation for u guys
R
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.
If you want to buy a cheap template, it will probably sux and will take you even more time to understand it than if you need to learn and do it yourself from scratch. Cookiecutrer is a nice template for starting s project so you already on the right way, for payments you can check existing stripe/paypal integration packages for example and from what you say about tutorials, you are right most tutorials just cover basic things and are not useful, but django documentation is really nice and you have many existing open source big django applications where you can see how did they built the things, etc As they say before, just keep trying and you will see you after many effort you can achieve it yourself :)
Anonymous
群里有没有搞安全的
Anonymous
群里有没有搞安全的
A7hul
群里有没有搞安全的
Like a normal teligram group security...
R
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.
Here I list you some real projects codebases which hopefully can help you see real world/production ready django apps: - https://github.com/django/djangoproject.com - https://github.com/taigaio/taiga-back - https://github.com/mirumee/saleor - https://github.com/rafalp/Misago - https://github.com/readthedocs/readthedocs.org
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'
Anonymous
Hve u migrated the model
While I run migrate command here also it gives the same error
Dextroleav
First run makemigrations
Dextroleav
Then migrate
Anonymous
First run makemigrations
Tqq so muchh it work
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?
Anonymous
Which api?
Dextroleav
There are so many api's
Dextroleav
Do a Google search as per your requirements
Anonymous
Hello, who can help link HTML pages from templates?Since I can explain a lot of information in a pm.
Anonymous
Well you wanna connect with html ?
no) can I explain everything in PM?
Maja Baki
Hello, who can help link HTML pages from templates?Since I can explain a lot of information in a pm.
Create static forlder name the folder is static then take CSS and js ,image
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