Damian
Good morning, people.
I'm having a problem with the session issue in an application with Capacitor (Ionic) and the inAppBrowser library.
The URL that raises the webview is a monolith application made in Django.
The problem I have is that when I close the app, I lose the session.
I understand that Django's authentication system is based on cookies.
Any suggestions?
thanks
bansh
Sanchit
Can help me out ki ....how I deploy my database to pythonanywhere for deployment of website
Sanchit
Sanchit
I am deploying django website on pythonanywhere
Sanchit
In this my eror is no database
Sanchit
How to resolve it
Maxim
besides, you can easily find the answer in the pythonanywhere documentation
ShuvamTheBeast
I have a model named Quiz inside a Quiz i want a list of question (another model) how do i proceed with this?
ShuvamTheBeast
Currently I'm linking both models using foreign key
ShuvamTheBeast
But by using this i have two different tables named Quiz and Question is there any way to add the Question inside quiz as a field like this:
Quiz={'name':"hdhhd", questions:[Question, Question]}
ShuvamTheBeast
I need to show forms for both of them, preferably on different pages
ShuvamTheBeast
Alfonso
Hello, anyone here knows a library or a way to be able to add columns dinamically in a Django project??
Yaroslav
Hi everyone!
I have created a multilingual website using Django i18n. But later I needed to change the default language (before LANGUAGE_CODE='ru') to one of those that were in the LANGUAGES configuration setting (now LANGUAGE_CODE='uk').
After that, when the user opens this site and selects the language 'ru', the translation does not work correctly. The models translate correctly, but the templates remain in 'uk'.
At the same time, when the user opens this website and selects the language 'uk' or 'en', the translation works without problems.
Tell me please, what is the reason and how can I solve this problem, or at least where it would be reasonable to search?
Mirco
Yaroslav
Mirco
yes
u sure ? generated po and mo ?
and applied ? so makemessage and compile ?
Yaroslav
Yaroslav
I originally created a translation files for all 3 languages.
Yaroslav
No, not really, just checked.
Initially, most of the template was written using the Russian language. Therefore, I thought that it does not require translation. And as a result, the msgstr fields of those parts of the text that are in Russian remained empty.
Is this the problem?
k9
hello guys am experiencing this problem AttributeError at /update_profile/
'RelatedManager' object has no attribute '_meta' here is my code https://pastebin.com/taYBamyL . I have tried everything i can can't figure it out. Please help
Mirco
Yaroslav
Anonymous
Hello friends
Can u help me with one task
I wanted to create a News App
If you have watched videos
Can u advice me?
Mirco
Raad
Hey guys,
I'm working on E-Invoicing and there are few requirements that I need of how it would be done.
1- hash singing : The invoice record must be hashed.
2- Anti tampering: The sustem must provide anti tampering technology.
In general, howi would achieve these requirements?
Демид
I have a website that is hosted. Data parsing is taking place in it in threads. So, during active parsing into several threads, after some time, an error OperationalError: unable to open database file occurs. After restarting the server, everything works correctly, but before it, the server loads hosting heavily. What could this be related to? Are there any restrictions on working with django databases? I use standard SQLite
𝓑𝓸𝓰𝓭𝓪𝓷
Fab 🌈 🐇🕸
Hello group, I'm totally new here. Hope you're having a good day. I would like to ask if you have any suggestion for my situation. I have a problem with template inheritance in Django 3.2, I mean, I don't understand why my {% extends "base.html" %} tag is completely ignored by the template system. It's placed in the first line, it extends the correct file, I used this approach in other projects. I recently upgraded the django core from version 2.0.4 to Django 3.2.13 and I'm working on my local development enviroment
Rajat
Anonymous
Anonymous
so problem coming
Fab 🌈 🐇🕸
with this specific project I mean, I'm extending it now and I don't really get what is going on
Anonymous
There are only two possible causes I can think of:
1. Your view is still trying to render base.html instead of your inherited html template.
Simply change the view to call the correct one (version_tag.html)
2. The template you're really trying to display is still inheriting from base.html instead of version_tag.html
Shaedul_Off
Hi, there👋
Shaedul_Off
Refused to apply style from 'http://127.0.0.1:8000/static/style.css' because its MIME type ('text/html') is not a supported stylesheet MIME type, and strict MIME checking is enabled.
CSS not working in django
Of course
Hello, what is best book for Django professional?
Shaedul_Off
Not-so-Slim
hey has anyone used api documentation in drf ? Can't find much about it how to customize etc , please suggest resources
Mirco
Fab 🌈 🐇🕸
why would Django ignore the "extends" template tag?
Fab 🌈 🐇🕸
like it was html to Django, I don't really get it. It's on the first line
Not-so-Slim
Ukasha
Hello guy. How can I fix type error expected str, btyes or os.PathLike object, not list
When am uploading an image I don't what to cause I get that error on both filefield an imagefield . Help me out
Not-so-Slim
debug a bit , use print to print out what exactly are you uploading
Ukasha
Mirco
Doragonsureiyā
thanks
You're welcome! 😊
Sergey
Hi folks! I have a question if i have 2 models and one of it is depend (inerited) from another. So the question is: how to create object for "child" model from "parent" (object exist in parent)
Fab 🌈 🐇🕸
Like, total mystery
Rangarajan
How to integrate Django API with XMPP server ejabberd?
Bobosher
Hello.
What's the best way to manage migrations in a fully containerized environment?
1. Storing a dependent version of migration in the server itself, out of container, running new migrations on each pipeline or
2. Storing migration files in the repo itself.
If option 1:
– Is it ok to store state of the container?
– What problems it can cause?
If option 2:
– How to deal with migration conflicts across multiple local repos?
– What problems it can cause?
Another question: What's the best way to synchronize migration files, the actual database schema and Django migrations table in a completely stateless containerized environment, if it's already broken?
Bobosher
Fab 🌈 🐇🕸
Rangarajan
Fab 🌈 🐇🕸
I'm not an expert
Rangarajan
Fab 🌈 🐇🕸
Rangarajan
Ohhkk. then I think its the problem with using ejabberd from docker.
Fab 🌈 🐇🕸
Rustambek
Thanks
Anton
Hello! I have a question how to get current language name from language code?
Mirco
Alisher shamuratov
Демид
What web server django uses instead of nginx?(when I run server with python manage.py runserver 0.0.0.0?
G4st0n