Re: DJANGO ADMINISTRATION ERROR & TemplateDoesNotExist

2020-08-31 Thread King Niko
The console does not seem to provide much information. It is simply stating that there is a 500 Server Error. I tried sifting for more details but there were none. However, in the: *> heroku logs --tail * It simply mentions that none of the paths exist to *the cart * and *the images *that derive

Re: DJANGO ADMINISTRATION ERROR & TemplateDoesNotExist

2020-08-31 Thread RANGA BHARATH JINKA
open console tab not elements tab On Tue, Sep 1, 2020 at 10:13 AM King Niko wrote: > Interesting, the browser console states the following: > > > > > Server Error (500) > > > Server Error (500) > > > > How could the *title* and *header 1* be causing the Server Error (500)? > > On Tue,

Re: DJANGO ADMINISTRATION ERROR & TemplateDoesNotExist

2020-08-31 Thread King Niko
Interesting, the browser console states the following: Server Error (500) Server Error (500) How could the *title* and *header 1* be causing the Server Error (500)? On Tue, Sep 1, 2020 at 12:39 AM RANGA BHARATH JINKA < bharathjink...@gmail.com> wrote: > Hi, > check in browser consol

Re: DJANGO ADMINISTRATION ERROR & TemplateDoesNotExist

2020-08-31 Thread RANGA BHARATH JINKA
Hi, check in browser console for errors On Tue, Sep 1, 2020 at 2:27 AM Lightning Bit < thelegendofearthretu...@gmail.com> wrote: > I logged into the ADMIN PORTAL and saw that there was an image for each > item in the ADMIN PORTAL. > > Strangely, when returning to the website, I am unable to actu

Re: NoReverseMatch at /searchlit/customsearch and bigger problem of exporting a filtered queryset

2020-08-31 Thread RANGA BHARATH JINKA
No problem. All the best 😀 On Mon, Aug 31, 2020 at 11:35 PM Patrick Carra wrote: > Thanks bharath for the info I'm going to dig more in to these. > > On Friday, August 28, 2020 at 9:05:04 PM UTC-5 bharath...@gmail.com wrote: > >> Hi, >> >> Please check this package. This may help you. All th

Re: URL configuration error for a beginner

2020-08-31 Thread Haris Ahmad
Hello dear, add that app in settings.py in installed apps Eg. "base.apps.BaseAppConfig" Or simply "base" Kind regards Haris On Tue, 1 Sep 2020, 3:59 AM Manal Helal, wrote: > Hi > > I am using DJango to the first time and appreciate some explanation to the > error I am receiving. I followed the

Re: Error configuring URLs for a beginner

2020-08-31 Thread Arpana Mehta
Do you have a *urls.py* in your 'app' folder? (And app is a reserved keyword, it would be better if you use some other name to avoid confusion even later ) On Tue, 1 Sep 2020 at 04:29, Manal Helal wrote: > Hi > > I am using Django to the first time and followed the tutorial in: > https://docs.dj

Re: URL configuration error for a beginner

2020-08-31 Thread Arpana Mehta
You need to replace apps.url with the name of the app ( which you might have created using python manage.py startapp and have a urls.py file in that app folder) In the tutorial also, they first create an app 'polls' and then include 'polls.url' It would be easier to solve your problem if you can

Error configuring URLs for a beginner

2020-08-31 Thread Manal Helal
Hi I am using Django to the first time and followed the tutorial in: https://docs.djangoproject.com/en/3.1/intro/tutorial01/ I changes the mysite and polls app to different project and app names, and followed the instructions I ended up with the following error when I run python manage.py runs

URL configuration error for a beginner

2020-08-31 Thread Manal Helal
Hi I am using DJango to the first time and appreciate some explanation to the error I am receiving. I followed the steps in the polls app tutorial: https://docs.djangoproject.com/en/3.1/intro/tutorial01/ and getting the following error when running: python manage.py runserver *path('app/', inc

DJANGO ADMINISTRATION ERROR & TemplateDoesNotExist

2020-08-31 Thread Lightning Bit
I logged into the ADMIN PORTAL and saw that there was an image for each item in the ADMIN PORTAL. Strangely, when returning to the website, I am unable to actually "see" the pictures - they are blank with the no file icon in the top left. This was not the case back in the testing environment.

Re: unexpected change

2020-08-31 Thread Kasper Laudrup
Hi rbarhydtsf, On 31/08/2020 20.21, rbarh...@gmail.com wrote: Thank you, Kasper.  Good idea.  Sadly, I don't really know how to do that. I would recommend finding some tutorial on how to use git (as that is probably what you'll use anyway). Cannot really recommend anything specific, but som

Re: Premission Denied - Apache

2020-08-31 Thread Kasper Laudrup
Hi Giovanni, On 31/08/2020 19.12, Giovanni Silva wrote: Dear Kasper, this is part of my code... So you probably just need to ensure that the user running your Django code has write access to BASE_DIR / media. Now it's up to you to figure out who that user is, what that path is and ensure

Re: unexpected change

2020-08-31 Thread rbarh...@gmail.com
Thank you, Kasper. Good idea. Sadly, I don't really know how to do that. On Monday, August 31, 2020 at 9:59:12 AM UTC-7 Kasper Laudrup wrote: > Hi rbarhydtsf, > > On 31/08/2020 18.36, rbarh...@gmail.com wrote: > > this says that it can't find "polls/index.html" but it is there...this > > was w

Re: NoReverseMatch at /searchlit/customsearch and bigger problem of exporting a filtered queryset

2020-08-31 Thread Patrick Carra
Thanks bharath for the info I'm going to dig more in to these. On Friday, August 28, 2020 at 9:05:04 PM UTC-5 bharath...@gmail.com wrote: > Hi, > > Please check this package. This may help you. All the best > > https://django-tables2.readthedocs.io/en/latest/pages/filtering.html >

Re: NoReverseMatch at /searchlit/customsearch and bigger problem of exporting a filtered queryset

2020-08-31 Thread Patrick Carra
*Thanks coolguy I changed my urls.py to this and that resolved the error:* from django.urls import include, path from . import views from .views import search app_name= "searchLit" urlpatterns=[ path('customsearch/', views.search, name='search'), path('exportlit/', views.searchLit_export

Re: unexpected change

2020-08-31 Thread rbarh...@gmail.com
Found it. Thank you. On Monday, August 31, 2020 at 9:36:16 AM UTC-7 rbarh...@gmail.com wrote: > this says that it can't find "polls/index.html" but it is there...this was > working previously. I don't know what changed. > > > ``` > def index(request): > #return HttpResponse("I have a BIG prese

Re: Premission Denied - Apache

2020-08-31 Thread Giovanni Silva
Dear Kasper, this is part of my code... [image: image.png] Best Regards Giovanni Em seg., 31 de ago. de 2020 às 13:33, Kasper Laudrup escreveu: > Hi Giovanni, > > On 31/08/2020 18.11, Giovanni Silva wrote: > > Hi Kasper, > > > > When I was running with the django local server, I have permiss

Re: unexpected change

2020-08-31 Thread rbarh...@gmail.com
here is the file structure. ``` polls migrations templates polls index.html On Monday, August 31, 2020 at 9:36:16 AM UTC-7 rbarh...@gmail.com wrote: > this says that it can't find "polls/index.html" but it is there...this was > working previously. I don't know what ch

Re: unexpected change

2020-08-31 Thread Kasper Laudrup
Hi rbarhydtsf, On 31/08/2020 18.36, rbarh...@gmail.com wrote: this says that it can't find "polls/index.html" but it is there...this was working previously.  I don't know what changed. Not that it might help you right now, but it is usually a good idea to keep your things in revision contro

unexpected change

2020-08-31 Thread rbarh...@gmail.com
this says that it can't find "polls/index.html" but it is there...this was working previously. I don't know what changed. ``` def index(request): #return HttpResponse("I have a BIG present for you.") latest_question_list = Question.objects.order_by('-pub_date') [:5] #output = ','.join([q.questi

Re: Premission Denied - Apache

2020-08-31 Thread Kasper Laudrup
Hi Giovanni, On 31/08/2020 18.11, Giovanni Silva wrote: Hi Kasper, When I was running with the django local server, I have permission and works good. The error occurs when I publish the site with apache2 I gave 777 permission because I was trying to do it (give permission). I understand th

Re: Premission Denied - Apache

2020-08-31 Thread Giovanni Silva
Hi Kasper, When I was running with the django local server, I have permission and works good. The error occurs when I publish the site with apache2 I gave 777 permission because I was trying to do it (give permission). Em seg., 31 de ago. de 2020 às 12:11, Kasper Laudrup escreveu: > Hi Giovan

UpdateView Redirect

2020-08-31 Thread 'dtdave' via Django users
I have got myself into somewhat of a pickle. Currently I have the following url structure: path('/', views.PublisherDetailView.as_view(), name='publisher_detail'), path('/update/', views.PublisherUpdateView.as_view(), name='publisher_update'), In my views the following: class PublisherUpdateVie

Re: Premission Denied - Apache

2020-08-31 Thread Kasper Laudrup
Hi Giovanni, On 31/08/2020 06.00, Giovanni Silva wrote: Can anyone help me please? All my project folder is 777 permissions with www-data user owner and group Please don't do that. That's a huge security risk and can cause all kinds of other problems. It is hard to know how to solve your

Re: can anyone help me

2020-08-31 Thread sakshi jain
no whts up only insta On Mon, 31 Aug 2020 at 14:22, sherry wilson wrote: > contact on whatsapp i will clear your issues +916238639239 if its not yet > cleared > > On Mon, Aug 31, 2020 at 11:45 AM Deepraj Devikar > wrote: > >> yes you have to forgot upload_to in models.py imagefield >> >> you c

Re: raise ValueError("Missing staticfiles manifest entry for '%s'" % clean_name)

2020-08-31 Thread King Niko
In clearer terms, I logged into the ADMIN PORTAL and saw that the items existed. There was also an image for each item in the ADMIN PORTAL. Strangely, when returning to the website, I am unable to actually "see" the pictures - they are blank. This was not the case back in the testing environment.

Re: raise ValueError("Missing staticfiles manifest entry for '%s'" % clean_name)

2020-08-31 Thread King Niko
Okay, got it to work. My STATICFILES_DIRS was not set. Now I am encountering the issue of the admin portal not working. I am unable to access pictures from the DJANGO ADMIN portal nor can I access any of the products that I have created. When I look at items that are linked to the DJANGO ADMIN po

Re: raise ValueError("Missing staticfiles manifest entry for '%s'" % clean_name)

2020-08-31 Thread King Niko
Thank you Ranga, the site is up and running now. Unfortunately, none of the Static CSS, Images, nor JS are appearing and I get this error for each individual CSS, Image, or JS file: *> * *"GET /static/images/Facebook.png HTTP/1.1" 404 179 "https://samplesite.herokuapp.com/home/

Re: can anyone help me

2020-08-31 Thread sherry wilson
contact on whatsapp i will clear your issues +916238639239 if its not yet cleared On Mon, Aug 31, 2020 at 11:45 AM Deepraj Devikar wrote: > yes you have to forgot upload_to in models.py imagefield > > you can refer my repository > https://github.com/Deepraj-devikar/image-upload-react-django > >

Re: Can Anyone suggest on Snowflake database connection using Django?

2020-08-31 Thread Himanshu Shekhar Mohapatra
Hi everyone, I am also searching for a solution for this. Please Help Thanks On Tuesday, October 29, 2019 at 5:41:16 PM UTC+5:30 Avinash Gaurav wrote: > Hi All, > I am trying to create an engine in settings.py of django app to connect to > snowflake database, > but not able to do so. Since sno

Re: can anyone help me

2020-08-31 Thread Kelvin Sajere
Apart from the answers already given, I see in your views, your form variable didn’t include request.FILES that allows for files to be saved via views. It should be form = PostForm(request.POST, request.FILES). On Sat, Aug 29, 2020 at 12:48 allaberdi...@gmail.com < allaberdi16yazha...@gmail.com> w

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 m

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