Re: Python-django project

2020-08-05 Thread sapna Choudhary
Interested

On Tue 21 Jul, 2020, 8:39 AM learn code,  wrote:

> Hi everyone,
>
> I am learning python and django, like to work on the projects to improve
> more.If any one interested to join with me to work on the projects,plz send
> me a email.
>
> --
> 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 django-users+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/django-users/e7116e9b-9458-4f49-a638-135c4b5874e0o%40googlegroups.com
> .
>

-- 
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 django-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CAP6mExj-kS_aeUJDc0Wo%3DzyTXbKSvSfYQF0WH33yMgAbEtqCyw%40mail.gmail.com.


Re: I want to learn Django

2020-08-15 Thread sapna Choudhary
Follow corey Schafer channel  on YouTube

On Fri 14 Aug, 2020, 3:20 PM Afolayan John, 
wrote:

> Hello I'm just a beginner in learning Django,
>
> Pls, guys I need a resourceful information on how to learn Django
>
> from beginning to end.
>
> --
> 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 django-users+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/django-users/19c4ab0d-3420-4fb9-aac2-a0f8fedb5d24o%40googlegroups.com
> 
> .
>

-- 
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 django-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CAP6mExiM5uR3nT5oRNFNi3RODuSindOnHprRGx6qwfJnHE-VXg%40mail.gmail.com.


Re:

2020-08-15 Thread sapna Choudhary
'App name/template name' this  is the path to be entered in views.py

On Fri 14 Aug, 2020, 9:47 PM Suraj Kumar, 
wrote:

> Hello,
> Can anyone tell me What is the code for template path in setting.py
>
> On Fri 14 Aug, 2020, 21:01 Suraj Kumar, 
> wrote:
>
>> Yes, I didn't include template path in setting.py.
>> So, that reason template doesn't exist error message coming
>>
>> On Fri 14 Aug, 2020, 20:04 Gaurav Srivastava, <
>> gauravsrivastava...@gmail.com> wrote:
>>
>>> Hii,
>>>
>>> It simply says that template does not exist.
>>>
>>> Possibly you have given the wrong path in the views section or you
>>> didn’t have include the template directory in the settings
>>>
>>> Check your issues will be solved. If you have made your template folder
>>> in the app, then you don’t have to include the template directory in the
>>> settings.
>>>
>>>
>>>
>>> Sent from Mail  for
>>> Windows 10
>>>
>>>
>>>
>>> *From: *Suraj Kumar 
>>> *Sent: *Friday, August 14, 2020 7:32 PM
>>> *To: *django-users@googlegroups.com
>>> *Subject: *
>>>
>>>
>>>
>>> Hi guys,
>>>
>>>
>>>
>>> I am to new django.
>>>
>>>
>>>
>>> I am making blog website project. During the making blog website I am
>>> stuck one point for last 5 hrs, I don't know how to resolve this. I also
>>> searched in google, stackoverflow but I am not satisfied with their answer.
>>> So, anyone can help me to resolve this issue.
>>>
>>>
>>>
>>> Please find attached screenshot which given below
>>>
>>>
>>>
>>> --
>>> 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 django-users+unsubscr...@googlegroups.com.
>>> To view this discussion on the web visit
>>> https://groups.google.com/d/msgid/django-users/CACCwaoVzB1disO9ZtZbPz%3DxrtBgm1gGuTkxx6--%2Bef7ODEjXDQ%40mail.gmail.com
>>> 
>>> .
>>>
>>>
>>>
>>> --
>>> 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 django-users+unsubscr...@googlegroups.com.
>>> To view this discussion on the web visit
>>> https://groups.google.com/d/msgid/django-users/182F89C8-7E9C-4EDE-8F93-B51335329E39%40hxcore.ol
>>> 
>>> .
>>>
>> --
>> 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 django-users+unsubscr...@googlegroups.com.
>> To view this discussion on the web visit
>> https://groups.google.com/d/msgid/django-users/CAJ4bi%3DQ%2Bu2t1%2B9qcVqTeW8npGm2A3hfWrzEpYvduEKZPmB5Peg%40mail.gmail.com
>> 
>> .
>>
> --
> 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 django-users+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/django-users/CACCwaoXGn2530S2Uhotevf-%2BXLKFq_F29PDEzV-kPhe4jC_GYw%40mail.gmail.com
> 
> .
>

-- 
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 django-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CAP6mExj4cRCg%2BhNFomPaJbgu_tw4LdSZyXSRd%3Dhb9JoFds3WKQ%40mail.gmail.com.


Re: having an issue with my admin site after an upgrade from django 3.0 to 3.1

2020-08-15 Thread sapna Choudhary
Once i encountered same issue ,it got resolved by upgrading django and
deleting all the browser cookies.

On Fri 14 Aug, 2020, 3:41 PM Exactly musty, 
wrote:

> Yes I have solved the problem,I made an hard clear cache, and hard refresh
> or you use django jazzmin
>
> On Fri, 14 Aug 2020, 10:50 am Tobias Lindenberg, 
> wrote:
>
>> I have the same problem, do you have a solution yet?
>>
>> exactmu...@gmail.com schrieb am Dienstag, 11. August 2020 um 20:49:07
>> UTC+2:
>>
>>> Done that already but still not working and I use another browser but
>>> still the same
>>>
>>> On Tue, 11 Aug 2020, 6:59 pm carlos,  wrote:
>>>
 Hi, clean your cache navigator??

 On Tue, Aug 11, 2020 at 11:04 AM Exactly musty 
 wrote:

> [image: adm.jpg]
>
> [image: adm1.jpg]
> hi i recently upgraded my django 3.0 to 3.1, then i started the
> project that i have been working on lately,actually my project is working
> perfectly but once i switch to the admin i don't get any error tho but i
> can't edit or change anything to my project anymore from the admin,here is
> a screenshot,if i slide into the admin i get to see the normal site admin
> but once i clicked any of my model i get the second screenshot
>
> PS: i am using custom user model and posgresql
>
> --
> 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 django-users...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/django-users/8149a365-2e81-4f25-a1a2-cf1b31c84c0do%40googlegroups.com
> 
> .
>


 --
 att.
 Carlos Rocha

 --
 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 django-users...@googlegroups.com.

>>> To view this discussion on the web visit
 https://groups.google.com/d/msgid/django-users/CAM-7rO3CxpiKH0fNWFheQNdzPnxT93PaPyqY7A2JiUu6Ai0xAQ%40mail.gmail.com
 
 .

>>> --
>> 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 django-users+unsubscr...@googlegroups.com.
>> To view this discussion on the web visit
>> https://groups.google.com/d/msgid/django-users/caeef963-30e3-441a-bc0c-06e314c32a14n%40googlegroups.com
>> 
>> .
>>
> --
> 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 django-users+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/django-users/CAP9DHG1E653kzz08SH6bh4jmqGGW7taO%2B%3D%2BY%2BqgrpX36GMz2Fg%40mail.gmail.com
> 
> .
>

-- 
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 django-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CAP6mExhj0z9-24gpm%2Bj8xfkpc6rUvg2ecYKwVMdQPZ3kegcZbw%40mail.gmail.com.


Re:

2020-08-19 Thread sapna Choudhary
Thank you everyone , I was also confused with this question, got clear.

On Wed 19 Aug, 2020, 8:56 PM Akinfolarin Stephen, <
akinfolarinsteph...@gmail.com> wrote:

> Yes you have to understand some basic things in other to work with it
> effectivelg
>
> On Wed, Aug 19, 2020, 15:05 tejas padghan  wrote:
>
>> Only basic .go ahead
>>
>> On Wed, 19 Aug 2020, 7:01 pm Suraj Kumar, <
>> surajsrivastava021...@gmail.com> wrote:
>>
>>> Hello Django Users,
>>>
>>>
>>> I want to know there is any need of knowledge in css, Html  while
>>> developing website through django. I can also use css framework bootstrap
>>> instead of css.
>>> Suraj
>>>
>>> --
>>> 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 django-users+unsubscr...@googlegroups.com.
>>> To view this discussion on the web visit
>>> https://groups.google.com/d/msgid/django-users/CACCwaoWVefcoqZRKLHDwVdkWm%3D_FKe7enMFeiQOybSQGCj13BQ%40mail.gmail.com
>>> 
>>> .
>>>
>> --
>> 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 django-users+unsubscr...@googlegroups.com.
>> To view this discussion on the web visit
>> https://groups.google.com/d/msgid/django-users/CAERZ70A-W_gq2ROc6etCCEdS4GhqL5ohePdR0H2Ns4WoES1p0Q%40mail.gmail.com
>> 
>> .
>>
> --
> 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 django-users+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/django-users/CAFujGLx8kGf%2BCyyJEqAjdHt6Cer7JC1Mt6BeHsoni89knrD3eA%40mail.gmail.com
> 
> .
>

-- 
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 django-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CAP6mExiZgPE6ZULUGmLg0aMa7%3DXWCUQ5dX2iOrfnbx%3Dch87tAQ%40mail.gmail.com.


Re: Sources for learning django

2020-08-21 Thread sapna Choudhary
Follow Corey Schafer youtube channel and don't have any about any book.
Documentation of django would take away your interest to learn django so
start with this channel.
please do share your experience.Corey Schafer


On Fri, Aug 21, 2020 at 4:00 AM Mohamed Ghoneim  wrote:

> Hey guys,
>
> can any one tell me  name of books , websites or youtube channels  which
> are good to learn django .
>
> i also want to ask ,how long does it take to learn django ?
>
> Thanks .
>
> --
> 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 django-users+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/django-users/5acb085e-246d-4802-9d23-b87b501918c9n%40googlegroups.com
> 
> .
>

-- 
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 django-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CAP6mExjYKSopfgF2yuMjgh5RTiK%2Bj9eH1Txq_eSDBkg1Ok--bw%40mail.gmail.com.


Re: django - admin error

2020-08-21 Thread sapna Choudhary
run command line django-admin ,you will see list of commands to run

On Thu, Aug 20, 2020 at 6:47 PM company <2071...@hansung.ac.kr> wrote:

> Hi, Django users.
>  I started to learn programming this year and joined to make new homepage
> for my programming club. So I want to know how to solve this problem.
> According to Django documentation part.1(tutorial), I installed Django and
> confirmed my Django version through  "python -m django --version"which is
> version 3.2. Then, I made directory named "renewal" in command line and
> moved to my directory "renewal" and lastly
> I ordered "django-admin startproject mysite" in commad line to make
> "mysite directory" in renewal directory. But, prompt said 'django -admin'
> is not an internal or external command, executable program or a batch file
> even if I tried to solve this problem, I do not know what should i do to
> solve this one. I will look forward your answer :)
>
>
>
> --
> 이 메일은 지정된 수취인만을 위해 작성되었으며, 중요한 정보나 저작권을 포함하고 있을 수 있습니다. 어떠한 권한 없이, 본 문서에
> 포함된 정보의 전부 또는 일부를 무단으로 제3자에게 공개, 배포, 복사 또는 사용하는 것을 엄격히 금지합니다. 만약, 본 메일이 잘못
> 전송된 경우, 발신인 또는 당사에 알려주시고, 본 메일을 즉시 삭제하여 주시기 바랍니다.
> This E-mail may contain confidential information and/or copyright
> material. This email is intended for the use of the addressee only. If you
> receive this email by mistake, please either delete it without reproducing,
> distributing or retaining copies thereof or notify the sender immediately.
> 
>
> --
> 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 django-users+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/django-users/261dd143-f482-4e6d-9ea9-c00fc4b7644an%40googlegroups.com
> 
> .
>

-- 
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 django-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CAP6mExiCpaHYBfdxinUksNy%3DE9g2QYsH791wFcvz1rsJmh%2BkuA%40mail.gmail.com.


Re: load static in css file

2020-08-24 Thread sapna Choudhary
create a directory named 'static' in the current directory. This directory
is used to store images/css files, you can load static in template using
{%load static%}  this code block and link under image tag like this {%
static 'app_name/img.jpg' %}

On Mon, Aug 24, 2020 at 6:16 PM 'Akash Sinha' via Django users <
django-users@googlegroups.com> wrote:

>
> Hi
>
> Create a folder inside ur project as static and keep ur images,css and js
> files into that folder then in your settings.py file define static path. U
> need to run python manage.py collect static command on terminal and then
> you have to link that css file in HTML
>
>
> Hint: check for Managing static files in official django doc or try stack
> overflow.com you will get example to setup static path
>
>
> On Mon, 24 Aug 2020 at 5:37 pm, MAMADOU KANTE
>  wrote:
> Hi Everybody!
> I am trying to set a background image using the STYLE tag with django
> template as follows:
>  
> But when I open the HTML page and inspect the page I receive an image with
> width zero. Can anyone help?
> When I use the same syntax on a regular HTML without django templates it
> works.
>
> On Mon, Aug 3, 2020 at 10:02 AM Obodoma Uzondu Vincent <
> uobodoma...@gmail.com> wrote:
>
> Hello your have to follow the direction where you stored your file .
> Generally, in Django you create a static folder then maybe an image files
> where you store the images. You should link the image this way src= "{%
> static 'images/imag.png' %}"
>
> On Mon, 3 Aug 2020, 10:06 Yemin Sajid,  wrote:
>
> This may not work as intended if the CSS files are not rendered using the
> Django template engine. You have to put the style declaration where you'd
> need the image in the ** tag in your template code. From
> there you can use the *{% static “images/imag.png” %}* syntax.
> On Friday, July 31, 2020 at 5:58:48 PM UTC+6 Chander shekhar wrote:
>
> tried this buddy yet it is not working
>
> Regards
> Chander Shekhar
> (bestcsp)
>
>
> On Thu, Jul 30, 2020 at 6:11 PM Irfan Khan  wrote:
>
> {% static 'imag.jpg' %}   instead of this try
>
> {% static “images/imag.png” %}
>
> On Thu, 30 Jul 2020 at 6:07 PM, Chander shekhar  wrote:
>
> I am unable to fetch images from css file .
> I have used {% load static %}
> {% static 'imag.jpg' %}
> buti can't fetch.console is saying image not found.
>
> --
> 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 django-users...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/django-users/554cbaf1-3b94-40b4-a0f1-efe0bd3f24ceo%40googlegroups.com
> 
> .
>
> --
> 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 django-users...@googlegroups.com.
>
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/django-users/CALKGVio%3DAsCafgcd-zfjBb2of-RWbPaTwwGjf7sXbjstgFdM6Q%40mail.gmail.com
> 
> .
>
> --
> 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 django-users+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/django-users/f0e45bd1-68ca-405f-a033-c808d6da53d5n%40googlegroups.com
> 
> .
>
> --
> 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 django-users+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/django-users/CACsKspkUCWwQdO_nGB%3DoU61X9qta7_8bFoBJODSF5rZNoVhiyQ%40mail.gmail.com
> 
> .
>
> --
> 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 django-users+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/django-users/CAOUY%2BRry8CUXbtx9QGhXYoU5c8R92gxG3q32%2B7dFpiPTnNgWaQ%40mail.gmail.com
> 

Re: load static in css file

2020-08-25 Thread sapna Choudhary
The image which you want as background image has to be in static folder.

On Tue 25 Aug, 2020, 5:45 AM MAMADOU KANTE,  wrote:

> I did load static at the top of the file {% load static %}.
> Also I linked the CSS file named style.css. Part of the css file was
> working perfectly. I only had issues with the background image.
>
> On Mon, Aug 24, 2020 at 4:02 PM sapna Choudhary  wrote:
>
>> create a directory named 'static' in the current directory. This
>> directory is used to store images/css files, you can load static in
>> template using {%load static%}  this code block and link under image tag
>> like this {% static 'app_name/img.jpg' %}
>>
>> On Mon, Aug 24, 2020 at 6:16 PM 'Akash Sinha' via Django users <
>> django-users@googlegroups.com> wrote:
>>
>>>
>>> Hi
>>>
>>> Create a folder inside ur project as static and keep ur images,css and
>>> js files into that folder then in your settings.py file define static path.
>>> U need to run python manage.py collect static command on terminal and then
>>> you have to link that css file in HTML
>>>
>>>
>>> Hint: check for Managing static files in official django doc or try
>>> stack overflow.com you will get example to setup static path
>>>
>>>
>>> On Mon, 24 Aug 2020 at 5:37 pm, MAMADOU KANTE
>>>  wrote:
>>> Hi Everybody!
>>> I am trying to set a background image using the STYLE tag with django
>>> template as follows:
>>>  
>>> But when I open the HTML page and inspect the page I receive an image
>>> with width zero. Can anyone help?
>>> When I use the same syntax on a regular HTML without django templates it
>>> works.
>>>
>>> On Mon, Aug 3, 2020 at 10:02 AM Obodoma Uzondu Vincent <
>>> uobodoma...@gmail.com> wrote:
>>>
>>> Hello your have to follow the direction where you stored your file .
>>> Generally, in Django you create a static folder then maybe an image files
>>> where you store the images. You should link the image this way src= "{%
>>> static 'images/imag.png' %}"
>>>
>>> On Mon, 3 Aug 2020, 10:06 Yemin Sajid,  wrote:
>>>
>>> This may not work as intended if the CSS files are not rendered using
>>> the Django template engine. You have to put the style declaration where
>>> you'd need the image in the ** tag in your template
>>> code. From there you can use the *{% static “images/imag.png” %}*
>>> syntax.
>>> On Friday, July 31, 2020 at 5:58:48 PM UTC+6 Chander shekhar wrote:
>>>
>>> tried this buddy yet it is not working
>>>
>>> Regards
>>> Chander Shekhar
>>> (bestcsp)
>>>
>>>
>>> On Thu, Jul 30, 2020 at 6:11 PM Irfan Khan  wrote:
>>>
>>> {% static 'imag.jpg' %}   instead of this try
>>>
>>> {% static “images/imag.png” %}
>>>
>>> On Thu, 30 Jul 2020 at 6:07 PM, Chander shekhar 
>>> wrote:
>>>
>>> I am unable to fetch images from css file .
>>> I have used {% load static %}
>>> {% static 'imag.jpg' %}
>>> buti can't fetch.console is saying image not found.
>>>
>>> --
>>> 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 django-users...@googlegroups.com.
>>> To view this discussion on the web visit
>>> https://groups.google.com/d/msgid/django-users/554cbaf1-3b94-40b4-a0f1-efe0bd3f24ceo%40googlegroups.com
>>> <https://groups.google.com/d/msgid/django-users/554cbaf1-3b94-40b4-a0f1-efe0bd3f24ceo%40googlegroups.com?utm_medium=email&utm_source=footer>
>>> .
>>>
>>> --
>>> 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 django-users...@googlegroups.com.
>>>
>>> To view this discussion on the web visit
>>> https://groups.google.com/d/msgid/django-users/CALKGVio%3DAsCafgcd-zfjBb2of-RWbPaTwwGjf7sXbjstgFdM6Q%40mail.gmail.com
>>> <https://groups.google.com/d/msgid/django-users/CALKGVio%3DAsCafgcd-zfjBb2of-RWbPaTwwGjf7sXbjstgFdM6Q%40mail.gmail.com?utm_medium=email&utm_source=footer>
>>> .
>>>
>>> --
>>> You received this message bec

Re: plz help i found this kinda problem when i run

2020-08-31 Thread sapna Choudhary
You need to create a directory named templates in your current directory
i.e., any app or project directory under that templates directory create
html file and include that html file with render method.


On Thu 27 Aug, 2020, 10:04 PM Ogunsanya Opeyemi, <
ogunsanyaopeye...@gmail.com> wrote:

> This means that your current_datetime.html template does not exists in any
> of those directory in the defined directory under templates in your
> setting.py file.
>
>
>
> On Thu, Aug 27, 2020 at 4:01 PM ALAKO ABIYO  wrote:
>
>>
>> Environment:
>>
>>
>> Request Method: GET
>> Request URL: http://127.0.0.1:8000/time/
>>
>> Django Version: 1.8
>> Python Version: 2.7.17
>> Installed Applications:
>> ('django.contrib.admin',
>>  'django.contrib.auth',
>>  'django.contrib.contenttypes',
>>  'django.contrib.sessions',
>>  'django.contrib.messages',
>>  'django.contrib.staticfiles')
>> Installed Middleware:
>> ('django.contrib.sessions.middleware.SessionMiddleware',
>>  'django.middleware.common.CommonMiddleware',
>>  'django.middleware.csrf.CsrfViewMiddleware',
>>  'django.contrib.auth.middleware.AuthenticationMiddleware',
>>  'django.contrib.auth.middleware.SessionAuthenticationMiddleware',
>>  'django.contrib.messages.middleware.MessageMiddleware',
>>  'django.middleware.clickjacking.XFrameOptionsMiddleware',
>>  'django.middleware.security.SecurityMiddleware')
>>
>> Template Loader Error:
>> Django tried loading these templates, in this order:
>> Using loader django.template.loaders.filesystem.Loader:
>> /home/django/mysite/templates/current_datetime.html (File does not exist)
>> /home/html/example.com/current_datetime.html (File does not exist)
>> Using loader django.template.loaders.app_directories.Loader:
>> /home/aa/.local/lib/python2.7/site-packages/django/contrib/admin/templates/current_datetime.html
>> (File does not exist)
>> /home/aa/.local/lib/python2.7/site-packages/django/contrib/auth/templates/current_datetime.html
>> (File does not exist)
>>
>>
>>
>> Traceback:
>> File
>> "/home/aa/.local/lib/python2.7/site-packages/django/core/handlers/base.py"
>> in get_response
>>   132. response = wrapped_callback(request,
>> *callback_args, **callback_kwargs)
>> File "/home/aa/mysite/mysite/views.py" in current_datetime
>>   12. t=get_template('current_datetime.html')
>> File
>> "/home/aa/.local/lib/python2.7/site-packages/django/template/loader.py" in
>> get_template
>>   46. raise TemplateDoesNotExist(template_name)
>>
>> Exception Type: TemplateDoesNotExist at /time/
>> Exception Value: current_datetime.html
>>
>> --
>> 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 django-users+unsubscr...@googlegroups.com.
>> To view this discussion on the web visit
>> https://groups.google.com/d/msgid/django-users/898d34f9-b67c-40aa-9dc9-32fab2e5f50cn%40googlegroups.com
>> 
>> .
>>
> --
> 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 django-users+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/django-users/CABJxPrFbRGNKBYog9HCL2AdNKe5DVtN0WZ1y5x0jrhM3O%3DixMg%40mail.gmail.com
> 
> .
>

-- 
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 django-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CAP6mExh9t4H8p8sPMZkdZ%2Bgb%2BpeNquNDCdOhja%3DBDFChLeb81Q%40mail.gmail.com.


Re: Python/Django, "The 'poster' attribute has no file associated with it"

2020-08-31 Thread sapna Choudhary
Did you create media directory in your base directory?

On Thu 27 Aug, 2020, 8:33 PM Tony Hall,  wrote:

> I'm relatively new to programming and I'm having some trouble with the
> ImageField in my models.py.
>
> I keep getting the error in the attachment every time I load the
> local:8000.
>
> My models.py is:
>
> from django.db import models
>
> class Pilot(models.Model):
> title = models.CharField(max_length=200)
> description = models.TextField()
> count = models.IntegerField()
> writer = models.CharField(max_length=200)
> year = models.IntegerField()
> script = models.FileField(blank=True, null=True, upload_to="scripts")
> poster = models.ImageField(blank=True, null=True, upload_to="posters")
> created_at = models.DateTimeField(auto_now_add=True)
> updated_at = models.DateTimeField(auto_now=True)
>
> def __str__(self):
> return self.title
>
> @property
> def imageURL(self):
> try:
> url = self.poster.url
> except:
> url = ''
> print('URL:', url)
> return url
>
> The settings.py :
> STATIC_URL = '/static/'
>
> MEDIA_ROOT = os.path.join(BASE_DIR, 'media')
> MEDIA_URL = '/media/'
>
> STATICFILES_DIR = [
> os.path.join(BASE_DIR, 'static')
> ]
>
> The urls.py:
> from django.contrib import admin
> from django.urls import path, include
> from django.conf import settings
> from django.conf.urls.static import static
>
> urlpatterns = [
> path('admin/', admin.site.urls),
> path('', include('script_app.urls')),
> ]
>
> if settings.DEBUG:
> urlpatterns += static(settings.STATIC_URL,
> document_root=settings.STATIC_ROOT)
> urlpatterns += static(settings.MEDIA_URL,
> document_root=settings.MEDIA_ROOT)
>
>
> How do I fix this?!!!
>
> --
> 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 django-users+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/django-users/2aae39fa-8fe5-4f83-b139-60918022ae61n%40googlegroups.com
> 
> .
>

-- 
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 django-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CAP6mExiz2-3ohsm4izrBUCO8SocmkksocsKe3P_KoTEprLyT6A%40mail.gmail.com.


Re: Online food ordering system Django

2020-09-19 Thread sapna Choudhary
This is a nice app you have made. could you share the github link?

On Fri, Sep 18, 2020 at 1:08 AM iheaka Ogechi 
wrote:

> Yes
> But both with Django
> Php
>
> On Wed, Sep 16, 2020, 4:08 PM Tanni Seriki  wrote:
>
>> Please those any one has a project like online food ordering system...
>>
>> --
>> 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 django-users+unsubscr...@googlegroups.com.
>> To view this discussion on the web visit
>> https://groups.google.com/d/msgid/django-users/CALWCJq1ED_y0gL7Vx9C%2BL%2BMuTJEiRZsW8J79DT9UOmeROSjitw%40mail.gmail.com
>> 
>> .
>>
> --
> 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 django-users+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/django-users/CAHzGx9WozQUP2ATWNVV0ec%2B6McrpFNE-eFmSW_kOD82SCHEOaQ%40mail.gmail.com
> 
> .
>

-- 
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 django-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CAP6mExgsd1Lds49OtdxfT8mgczLUCeXqvCLid2abbHpm6h-8xw%40mail.gmail.com.


Re: Looking to join a team in a Django Project to gain Experience

2020-09-28 Thread sapna Choudhary
I am interested.

On Tue 22 Sep, 2020, 6:09 AM ahmed.he...@gmail.com, <
ahmed.heshamel...@gmail.com> wrote:

> Hi all,
>
> I am looking for a team of developers to join them in a project to enhance
> my skills and add to my portfolio.  I am available part time.
>
> Thanks
>
> --
> 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 django-users+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/django-users/6e15411d-b25d-40c8-a987-e65da9b3c297n%40googlegroups.com
> 
> .
>

-- 
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 django-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CAP6mExgHWZZKTHd4NagQm4XZDzd4_9-gpp13D0eP73f-oijoQA%40mail.gmail.com.