Re: deploying django project with mod_wsgi and apache

2020-05-16 Thread みやうち`
AWS EC2 with Linux. Since deployment of "polls" app works fine, I think there is no problem with server... But django and apache give no error about my app. -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and

Re: deploying django project with mod_wsgi and apache

2020-05-16 Thread Kurosh Sol
what is your server as you are Japanese might be use server or sakura? On Sun, May 17, 2020 at 10:07 AM みやうち` wrote: > I got completely stuck deploying django to production. > > I deployed my project using apache and mod_wsgi, and then it hangs I > access it with browser. > Neither django nor

Problems when obtaining an id, sent by a form

2020-05-16 Thread cosmos multi
Good evening, I am trying to get the id of my model Note that is sent by means of a form, but when I put form.id it tells me that id is not defined, try to get it through the user session but it says that it was not found. def add_book(request): template_name = 'books/create_note.html' book =

Re: Bootstrap drop down menu not clickable.

2020-05-16 Thread Clive Bruton
On 16 May 2020, at 15:43, sunday honesty wrote: I included it to installed app and got an error message on the console. "Module not found, no module named bootstrap 4" "bootstrap4" -- Clive -- You received this message because you are subscribed to the Google Groups "Django users"

deploying django project with mod_wsgi and apache

2020-05-16 Thread みやうち`
I got completely stuck deploying django to production. I deployed my project using apache and mod_wsgi, and then it hangs I access it with browser. Neither django nor apache gives me any errors at all, so I can't guess the cause of problem. Since it can be accessed by starting with "runserver",

Re: PROBLEM WITH Multiple SETTINGS.PY FILE

2020-05-16 Thread Jorge Gimeno
It's coming from your settings file. I would try this: In this line here: elif HOST == "Sai" : from settings_dev_sai import * I would try to make the second line: from .settings_dev_sai import * See if Python can find the module that way. If Python does, then all of the imports in

Re: PROBLEM WITH Multiple SETTINGS.PY FILE

2020-05-16 Thread chaitanya orakala
Do you have any idea why i am getting this error? On Sat, May 16, 2020 at 6:40 PM chaitanya orakala wrote: > Yes Jorge, all the settings file are in the same folder > > > On Sat, May 16, 2020 at 5:20 PM Jorge Gimeno wrote: > >> >> >> On Sat, May 16, 2020 at 1:52 PM chaitan wrote: >> >>> Hi, I

Re: PROBLEM WITH Multiple SETTINGS.PY FILE

2020-05-16 Thread chaitanya orakala
Yes Jorge, all the settings file are in the same folder On Sat, May 16, 2020 at 5:20 PM Jorge Gimeno wrote: > > > On Sat, May 16, 2020 at 1:52 PM chaitan wrote: > >> Hi, I am facing ModuleNotFoundError in my Django application. It got >> configured with multiple settings files for production,

Re: PROBLEM WITH Multiple SETTINGS.PY FILE

2020-05-16 Thread Jorge Gimeno
On Sat, May 16, 2020 at 1:52 PM chaitan wrote: > Hi, I am facing ModuleNotFoundError in my Django application. It got > configured with multiple settings files for production, Development & > Testing. > When I Try to run Python manage.py runserver --settings= settings_dev_sai. > > This is My

Re: Possible Bug? AttributeError: 'HttpResponse' object has no attribute '_resource_closers'

2020-05-16 Thread Jorge Gimeno
On Sat, May 16, 2020 at 12:06 PM Tim Allen wrote: > I posted this to Stack Overflow first, thinking it might be a problem with > `mod_wsgi`, but people using Gunicorn have seen the issue too. Here's a > link to the question on Stack Overflow: > > >

PROBLEM WITH Multiple SETTINGS.PY FILE

2020-05-16 Thread chaitan
Hi, I am facing ModuleNotFoundError in my Django application. It got configured with multiple settings files for production, Development & Testing. When I Try to run Python manage.py runserver --settings= settings_dev_sai. This is My *Settings* File: import socket #import settings depending

models.Datefield being localized where it shouldn't

2020-05-16 Thread Akshay Salunke
So, I have a DateField in my model and have also set I18N & L10N to `True` in settings. When a browser running `en-AU` locale visits the website, Django tries to parse the value read from model, using the first value in `DATE_INPUT_FORMATS` from /conf. The bug is when a user in `en-AU` locale

Possible Bug? AttributeError: 'HttpResponse' object has no attribute '_resource_closers'

2020-05-16 Thread Tim Allen
I posted this to Stack Overflow first, thinking it might be a problem with `mod_wsgi`, but people using Gunicorn have seen the issue too. Here's a link to the question on Stack Overflow:

Re: pip not working

2020-05-16 Thread Ogunsanya Opeyemi
*Hi akorede unistall the package then reinstall the package. i think that would be help full* On Friday, May 15, 2020 at 3:16:52 PM UTC+1, Akorede Habeebullah wrote: > > Hi guys, I need help with my pip. It was working fine until I upgraded it. > now its not working fine anymore. I tried

Re: Deploying Django Project on heroku

2020-05-16 Thread Sunday Iyanu Ajayi
Hi Akshat, It worked *AJAYI Sunday * (+234) 806 771 5394 *sunnexaj...@gmail.com * On Sat, May 16, 2020 at 2:39 PM Akshat Zala wrote: > Did the downgrading django==2.2 LTS worked? > > On Friday, 15 May 2020 00:40:42 UTC+5:30, Sunday Iyanu Ajayi wrote: >> >> Thank you. I will do that >>

How to create custom tag - break for tamplate?

2020-05-16 Thread Sergei Sokov
Hi I would like abort a loop in my template. How to create custom tag - break for tamplate? -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and stop receiving emails from it, send an email to

Re: Bootstrap drop down menu not clickable.

2020-05-16 Thread Simon A
Not quite sure on that. Usually what I do is the process that you just mentioned and what we did earlier for all the packages that I use. On Sat, May 16, 2020, 23:10 sunday honesty wrote: > I saw "pip install django-bootstrap4" > > After installing, I should load bootstrap > Then I could add

Re: Bootstrap drop down menu not clickable.

2020-05-16 Thread sunday honesty
I saw "pip install django-bootstrap4" After installing, I should load bootstrap Then I could add bootstrap form. Other tutorials I have seen don't require downloading bootstrap since I have doneloaded the compiled bootstrap and added it to the static folder of my Django project. If really I must

Re: Bootstrap drop down menu not clickable.

2020-05-16 Thread sunday honesty
All right On Sat, May 16, 2020, 3:49 PM Simon A wrote: > Try to run the pip install command if you havent already. Check the > correct command to install bootstrap3 or 4 if forgot the complete package > name. > > On Sat, May 16, 2020, 22:45 sunday honesty > wrote: > >> I included it to

Re: Bootstrap drop down menu not clickable.

2020-05-16 Thread Simon A
Try to run the pip install command if you havent already. Check the correct command to install bootstrap3 or 4 if forgot the complete package name. On Sat, May 16, 2020, 22:45 sunday honesty wrote: > I included it to installed app and got an error message on the console. > "Module not found, no

Re: Bootstrap drop down menu not clickable.

2020-05-16 Thread sunday honesty
I included it to installed app and got an error message on the console. "Module not found, no module named bootstrap 4" On Sat, May 16, 2020, 3:31 PM Clive Bruton wrote: > > On 16 May 2020, at 15:03, sunday honesty wrote: > > > I did that and got a TemplateSyntaxError stating that bootstrap4 is

Re: Bootstrap drop down menu not clickable.

2020-05-16 Thread Clive Bruton
On 16 May 2020, at 15:03, sunday honesty wrote: I did that and got a TemplateSyntaxError stating that bootstrap4 is not a registered tag library Did you put it in your installed_apps? -- Clive -- You received this message because you are subscribed to the Google Groups "Django users"

Re: CSS with Django forms

2020-05-16 Thread Anubhav Madhav
Okay!! I'll look into it, Thanks!! On Saturday, 16 May 2020 06:54:57 UTC+5:30, Clive Bruton wrote: > > You can use bootsrap4, or look at the output from the forms and set > up your CSS around that. > > > -- Clive > > On 14 May 2020, at 19:40, Anubhav Madhav wrote: > > > Thankyou Clive!! I

How to share the post with friends in django?

2020-05-16 Thread Akshat Zala
I have researched many questions on stackoverflow but failed to solve. There are 3 different apps : ├── blog │ ├── admin.py │ ├── apps.py │ ├── forms.py │ ├── migrations │ │ ├── 0001_initial.py │ │ ├── 0002_auto_20200516_1052.py │ │ ├── 0003_share.py │ │ └── __init__.py │

Re: Bootstrap drop down menu not clickable.

2020-05-16 Thread Simon A
Is it in you installed apps? On Sat, May 16, 2020, 22:04 sunday honesty wrote: > I did that and got a TemplateSyntaxError stating that bootstrap4 is not a > registered tag library > > -- > You received this message because you are subscribed to a topic in the > Google Groups "Django users"

Bootstrap drop down menu not clickable.

2020-05-16 Thread sunday honesty
I did that and got a TemplateSyntaxError stating that bootstrap4 is not a registered tag library -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and stop receiving emails from it, send an email to

Bootstrap drop down menu not clickable.

2020-05-16 Thread Simon A
Try to include the dependencies inside the block content. Here is what I did {% block content %} {% load bootstrap3 %} {% bootstrap_css %} {% bootstrap_javascript %} -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this

Re: Deploying Django Project on heroku

2020-05-16 Thread Akshat Zala
Did the downgrading django==2.2 LTS worked? On Friday, 15 May 2020 00:40:42 UTC+5:30, Sunday Iyanu Ajayi wrote: > > Thank you. I will do that > *AJAYI Sunday * > (+234) 806 771 5394 > *sunne...@gmail.com * > > > > On Thu, May 14, 2020 at 3:58 AM Akshat Zala > wrote: > >> If possible, please

Re: pip not working

2020-05-16 Thread JEGATHEESWARAN SUNDARAVADIVEL
could you share the screen shot of your errors , so that we can make sure , what's the exact error you are getting . most probably you have to install the pip3 . On Friday, 15 May 2020 19:46:52 UTC+5:30, Akorede Habeebullah wrote: > > Hi guys, I need help with my pip. It was working fine until

How to make to display the button which I need in my template Django?

2020-05-16 Thread Sergei Sokov
I need: 1) If a user has created a object of the class by a form, then he sees the button which calls the webpage of the object detail. 2) If a user didn't create a object of the class, but another user did it, then he sees the button which calls this form to create a object and the user

Re: Issue with Heroku Getting Started

2020-05-16 Thread John McClain
did it work? On Sat, 16 May 2020 at 01:37, Jorge Gimeno wrote: > > > On Fri, May 15, 2020 at 5:27 PM John McClain > wrote: > >> try removing this >> >> django-utils==0.0.2 >> >> from requirements then run again to see next error >> > > Good catch! I'll bet there's a name collision here. > >