Anonymous
to activate it, type: source env/bin/activate
Rounak
https://www.youtube.com/watch?v=FwKJyRQBOQk&t=331s
Anonymous
to activate it, type: source env/bin/activate
then install django in it: pip install django
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
how there one is working,dats my question ..pls see the video...i have followed the same steps
dude, never trust youtube videos except u already know what u/they're doing.
Mirco
I'm sure this is super easy if you've seen some code, but I have no clue what that involves 😱
It's strange, I think you've already managed one to many relationship in a form
Anders (izzno / gooood) 🇳🇴
It's strange, I think you've already managed one to many relationship in a form
Yes, I am pretty sure we are not understanding each other correctly 😂
Anders (izzno / gooood) 🇳🇴
The relationship is not the problem, the filepath is my concern.
Mirco
The relationship is not the problem, the filepath is my concern.
Why ? That's not understand 😂 If u have the relationship , it's easy to get what you need
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 ?
Anders (izzno / gooood) 🇳🇴
The images are saved before items, so what good is items pre_save?
Mirco
The images are saved before items, so what good is items pre_save?
Tomorrow I will share you a better example to help ya 💪🏻
Anders (izzno / gooood) 🇳🇴
Haha, thanks. I was thinking I would make a YouTube video to show you what I mean 🤔, have a good nigh 😉
Arseniy
Hmm, reposts are blocked here?
أمجد☄
Can i use my own html + css admin panel template with django ?
أمجد☄
Can i use my own html + css admin panel template with django ?
I know that it have to be configured to match and use the django admin panel but if its possible how do i use and configure it ?
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
location /static_prod/ { root /home/sr/bots/route_project; expires 30d; } location /static_testing/ { root /home/sr/bots/testing_route_project; expires 30d; }
It works for static files, but doesn't work for media files. Django config for production project: https://pastebin.com/R0WsJfrg Django config for testing project: https://pastebin.com/PHLMpCVn Nginx config: https://pastebin.com/Z1CuKzQT I display some pictures on the page using PHOTO_URL = f'http://mydomain.com/testing{MEDIA_URL}' but it not found (404 error) and doesn't display on page.
Anonymous
Can anyone tell me this error
Anonymous
cx_Oracle.DatabaseError: ORA-02000: missing ALWAYS keyword
Anonymous
while migrating
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
more conttext
any clue ?
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
@unrealtrump can you please use platforms like Pastebin or bpaste or something like that
What is that if u can give some links just trying to lean Django
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
G
why are you still using those old-as-f versions?
😂😂😂😂😂😂
G
Python 1.0??? Naaa
V
Naa django 2.0
V
18.04
V
Ubuntu version latest
V
👆
I am trying to install django version 2.1 on ubuntu latest verison 18.0
V
Command sudo pip install django==2.1
V
Error No matching distribution found for django==2.1
V
Plzz help
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()
Maksim
Why can't I write so: new_comment = post
inchidi
Why can't I write so: new_comment = post
you can, new_comment is just a variable
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