Anonymous
to activate it, type:
source env/bin/activate
Rounak
https://www.youtube.com/watch?v=FwKJyRQBOQk&t=331s
Anonymous
and you're ready to go
Rounak
In this video ,you can see the instructor has used existing one
Rounak
how there one is working,dats my question ..pls see the video...i have followed the same steps
Anonymous
Rounak
Mirco
Anders (izzno / gooood) 🇳🇴
Mirco
Anders (izzno / gooood) 🇳🇴
The relationship is not the problem, the filepath is my concern.
Anders (izzno / gooood) 🇳🇴
No becaouse the file is saved in the filesystem before its aware of the ITEM at all if you do it from the ITEM create view ;). So unless i make a specific file model for ITEMS all files will go in the same folder
Евгений
Hi all.
how configure django for LoginRequiredMixin to redirect to Oauth backed ?
Mirco
Anders (izzno / gooood) 🇳🇴
The images are saved before items, so what good is items pre_save?
Anders (izzno / gooood) 🇳🇴
Haha, thanks. I was thinking I would make a YouTube video to show you what I mean 🤔, have a good nigh 😉
Mirco
Arseniy
Hmm, reposts are blocked here?
George
أمجد☄
Can i use my own html + css admin panel template with django ?
Anonymous
Hello, guys!
I have 2 django projects that works on different ports.
It works on gunicorn + nginx. Nginx is handling all requests for static files. I dont understand how to divide requests for static files for each project. Here's my nginx config:
https://pastebin.com/8k6W6muK
Welis
Maybe
location /static/ {
root /home/sr/bots/route_project;
expires 30d;
}
Anonymous
its working, but using static files for 2 apps in 1 directory -> /home/sr/bots/route_project
Anonymous
I want that thing:
When I loading mydomain.com/testing - using static from /home/sr/bots/testing_route_project
When I loading mydomain.com/route - using static from /home/sr/bots/route_project
Welis
so, create two nginx configs
Welis
STATIC_URL = /static_prod
if DEBUG:
STATIC_URL = /static_testing
Welis
location /static_prod/ {
root /home/sr/bots/route_project;
expires 30d;
}
location /static_testing/ {
root /home/sr/bots/testing_route_project;
expires 30d;
}
Anonymous
I think I got it, let me try
Sebuhi
Hello there, is there anyone used pika module in Django?
Sebuhi
Does it blocks Django threads, when you use BlocikngConnection?
Anonymous
Can anyone tell me this error
Anonymous
cx_Oracle.DatabaseError: ORA-02000: missing ALWAYS keyword
Anonymous
while migrating
apple
Anonymous
ango\db\migrations\executor.py", line 91, in migrate
self.recorder.ensure_schema()
File "C:\Users\pandeysa\AppData\Local\Programs\Python\Python36-32\lib\site-packages\django\db\migrations\recorder.py", line 69, in ensure_schema
raise MigrationSchemaMissing("Unable to create the django_migrations table (%s)" % exc)
django.db.migrations.exceptions.MigrationSchemaMissing: Unable to create the django_migrations table (ORA-02000: missing ALWAYS keyword)
Anonymous
Anonymous
@unrealtrump can you please use platforms like Pastebin or bpaste or something like that
Anonymous
It's difficult to read long mesages and it's quite easy to see the error on those platforms.
Thank you
Anonymous
Anonymous
Anonymous
Thank you all
Anonymous
@unrealtrump just google bpaste or Pastebin
They are platform that devs use for sharing errors or snippets of code
Anonymous
Its quite easy to use and yeah it saves a lot of time scrolling through longer message
Anonymous
*messages
V
New version of django 2.0 cant install on ubuntu 18
V
What I do
cj
What I do
what are you doing to try to install it?
Mohd
I am also causing same problem is there any way to install python 2.0 instead of 1.0
cj
G
Python 1.0??? Naaa
V
Naa django 2.0
V
18.04
V
Ubuntu version latest
cj
V
👆
I am trying to install django version 2.1 on ubuntu latest verison 18.0
cj
G
V
Command sudo pip install django==2.1
V
Error No matching distribution found for django==2.1
V
Plzz help
cj
cj
never use sudo to install Python packages through pip
cj
Plzz help
please read about virtual environments first
V
Okk
V
Thanks
Maksim
Hi comrades, I have one stupid question
Can you e explain me one thing.
Code:
if comment_form.is_valid():
new_comment = comment_form.save(commit=False)
new_comment.post = post —— I don't understand what means this string:
new_comment.post
Does this get from POST response.data?
new_comment.save()
inchidi
Maksim
Why can't I write so:
new_comment = post
inchidi
inchidi
Dhave
Hello good day, just started my trip to django 3 days already and i'm telling you i am thrilled to how this framework looks and functions.
By the way is this group a django community like stackoverflow?
Dhave
Done reading the Django code ot conduct. Thanks
Duke
Hey friends
I know it's not right msg
But I want to say that if anyone have free video series on the Django from start to end then plzz DM me
I would be very thankful to you all
Anonymous