Nobi
Which type of issues you got
Nobi
Just tell which kind of error or exception you got if you gusy dont tell me how can I understand
clouded
Which type of issues you got
I don't have any, since I'm not trying to run your commands. I'm just saying that they can't be copied and pasted, since they contain typos and capitalization issues.
Nobi
Ok
Nobi
Now I got it
Nobi
When I will free I send again
Stanislav
Stanislav
alternative command: python3 -m django
it works but I want Django-admin
S 🍁
Hello guys! Do you know books or blogs where can read about django queries with a loooot of examples? Always have difficult with it
Brown
What is the difference between django-admin startapp and python manage.py startapp, and which one is preferable?
Srinu
What is the difference between django-admin startapp and python manage.py startapp, and which one is preferable?
Both are same Django-admin-startapp is stand alone script that can be manage django projects and apps
Srinu
Py manage.py startapp script is created when you start a new project
Chikal
Hello Django Programmers, Ive got a problem, I am currently using sqlite3 for my django database, Ive tried to use postgre and also mysql but its too heavy for my server so its worst than my sqlite3, I have difficulties on handle 1 million user while they accessing some models, is there any solutions that i can use? Ive tried using replica on shared network, its work nice but I am worried about security..
Chikal
Use mongoDB
do you have any reasons or references according to your suggestion?
Chikal
https://t.me/django/284745
thanks bro, the simple answer is NO
奈姆
django is primarily built with relational db in mind (django orm). so, porting an existing app to nosql is not very feasible. admin panel is rely on django orm too.
Muxtoriddin
i have one problem, i made platform as letcode, but it attacked a lot, can you help me to defend them to any kind of ddos or virus codes, i use docker container every execute but this situation I need a lot of resoursez
Doragonsureiyā
i have one problem, i made platform as letcode, but it attacked a lot, can you help me to defend them to any kind of ddos or virus codes, i use docker container every execute but this situation I need a lot of resoursez
This is not a Django specific question, please delete your offtopic message. If it's a Python related question go to @Python group, otherwise please move to @PythonOfftopic group and ask there.
PΛRSΛM
hey can I get mac address and IP in request?
Muxtoriddin
I have got one project that 10+ k activ users in one second will be, which one must I use Django REST Framework or Fast API. it will be e commerse
Muxtoriddin
This is a Django group ONLY, we don't discuss other libraries
I know so I give the question that can django rest framework response 10 k requests in second
Shubham
Can someone tell me a good place to learn rest apis
_/___//
Hai i have a small project which the applied diacounts should be automatically become invalid one the valid from.and valid to option is finished can anyone help me with that logic
Raghavendra N
Good Evening Dear Friends i am very new to Django can anyone guide me how to start a Basics
Doragonsureiyā
Good Evening Dear Friends i am very new to Django can anyone guide me how to start a Basics
Looking for Django tutorials? you can follow these three recommended ones: * Official documentation and tutorial * Tutorial from MDN * Tutorial from django-girls
Shubham
Please give me django notes
Maxim
Please give me django notes
https://t.me/django/286986
The Inspired
if I want to run a script just before starting the django project, where would I write the code?
The Inspired
essentially, when I do python3 manage.py runserver, I first want the script to run, and then the project to start
The Inspired
modify the manage.py file then ¯\_(ツ)_/¯
if it were that easy, why would I ask the question here?
cj
if it were that easy, why would I ask the question here?
that's what I'm wondering it's that easy for real
Muhammed
How to use CSRF In Django rest API
Maxim
How to use CSRF In Django rest API
https://www.google.com/search?q=DRF+CSRF
Software
Hello does anyone know why when i deploy my django app the static files not working
Doragonsureiyā
Hello does anyone know why when i deploy my django app the static files not working
Impossible to help without details. Read this please: http://www.catb.org/~esr/faqs/smart-questions.html
Software
When i deploy my django project to pythonanywhere css and js and images not shown
Хумоюн
I need help, I was doing 3 languages, it's not working, what can I do? please help me
Doragonsureiyā
I need help, I was doing 3 languages, it's not working, what can I do? please help me
If you need help, don't just say "not working", explain in detail what's not working the way you expect it to.
Хумоюн
django-admin compilation messages I used the room, now there is no error in the terminal, only the language does not change
Хумоюн
""" def set_language(request, lang_code): translation.activate(lang_code) request.session[settings.LANGUAGE_SESSION_KEY] = lang_code return redirect(request.META.get('HTTP_REFERER', '/')) """
Хумоюн
<h1>{% trans "Salom dunyo" %}</h1> <p>Hozirgi til: {{ request.LANGUAGE_CODE }}</p> <h2>Tilni tanlang:</h2> <form action="{% url 'set_language' 'uz' %}" method="post"> {% csrf_token %} <button type="submit">O'zbekcha</button> </form> <form action="{% url 'set_language' 'en' %}" method="post"> {% csrf_token %} <button type="submit">English</button> </form> <form action="{% url 'set_language' 'ru' %}" method="post"> {% csrf_token %} <button type="submit">Русский</button> </form>
Jhon
Hello, good afternoon, does anyone know the concept of Django Multi-tenant, what happens is that I am developing a parking lot with multi-tenant architecture based on schemas, where a tenant will have the initial configuration among these the parking lot, which will have a domain, and a list of tenants as applications as a rate, saying that each will have a different rate for each parking lot, this is almost implemented but what happens to me is that when I log in it does not allow me to separate the data for each tenant as I could finish it. implement
Valdez
Hi all, please do you have a good tutorial or training on using react as a frontend and Django as a backend. A tutorial that explains really well...
At
Hii anyone can help me to know the django fixture and signal
Charly
How to use it
Have you checked the documentation?
Valdez
Have you checked the documentation?
Yes I am used to using bootstrap for the frontend with Django for the backend. but I don't want click actions in the site to refresh the page anymore. And the react documentation doesn't talk about how to use it with Django.
奈姆
Yes I am used to using bootstrap for the frontend with Django for the backend. but I don't want click actions in the site to refresh the page anymore. And the react documentation doesn't talk about how to use it with Django.
Use django-rest-framework to create REST APIs and use any frontend framework to integrate it. Client-sever architecture is not specific to any language or framework.
Number one
This my code I wanna added star on my shop {% with '' |center:item.star as range %} {% for _ in range %} <div class="bi-star-fill"></div> {% endfor %} {% endwith %} And django error says TemplateSyntaxError at / Could not parse the remainder: '(item.star)' from 'range(item.star)'
karuppasamy
Authentication table migrate multiple database how to i migrate For example: I create user stored multiple table.
daft
I am working on a Django REST Framework (DRF) project using DRF Spectacular for API documentation. My ViewSet does not use a serializer because the logic does not require one, but I need to describe the request body shape in the API documentation. To achieve this, I am using DRF Spectacular's inline_serializer to define the request body schema dynamically. Here’s an example of how I’ve implemented it: While the schema generation works without errors, the request body schema described via inline_serializer does not appear in the frontend API documentation (e.g., Swagger UI). The rest of the API is documented correctly. https://dpaste.org/1aCED- here is my code
Parsa
from django.contrib.auth.forms import UserCreationForm, UserChangeForm from .models import CustomUser class CustomUserCreationForm(UserCreationForm): class Meta(UserCreationForm): model = CustomUser fields = UserCreationForm.Meta.fields + ('age',) class CustomUserChangeForm(UserChangeForm): class Meta: model = CustomUser fields = UserChangeForm.Meta.fields
Parsa
hello, is it correct?
Suryo Adhy Chandra
thanks bro, the simple answer is NO
how do u migrate using ORM on mongodb 😃
奈姆
how do u migrate using ORM on mongodb 😃
ORM = Object Relational Mapper For mapping relational models (Relational database tables) to objects. MongoDB = NoSQL NoSQL databases is NOT relational. Conclusion: Django ORM is not really compatible with any NoSQL databases. (Unless you ditch the Django ORM entirely when developing Django app)
Doragonsureiyā
how do u migrate using ORM on mongodb 😃
Do you want to use Django with MongoDB? Then you shouldn't Please read this article: https://daniel.feldroy.com/when-to-use-mongodb-with-django.html