clouded
Nobi
Which type of issues you got
Joshua
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
" 0 0 7
Stanislav
Stanislav
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?
Mirco
Srinu
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..
Philip Kristensen
Chikal
Use mongoDB
do you have any reasons or references according to your suggestion?
clouded
奈姆
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.
Philip Kristensen
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ā
PΛRSΛM
hey
can I get mac address and IP in request?
Maxim
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
Charly
Charly
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
bibi
Shubham
Please give me django notes
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
cj
Muhammed
How to use CSRF
In Django rest API
Software
Hello does anyone know why when i deploy my django app the static files not working
Software
When i deploy my django project to pythonanywhere css and js and images not shown
Maxim
Хумоюн
I need help, I was doing 3 languages, it's not working, what can I do?
please help me
Muhammed
Хумоюн
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...
Charly
At
Hii anyone can help me to know the django fixture and signal
At
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.
奈姆
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)'
Number one
Arif
Number one
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
Legend
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?
Chikal
Robust
Chikal
奈姆
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