Re: Difficulty Rendering a Form

2023-05-17 Thread Michael Starr
wa.me/249113075979 > > > > On Tue, May 16, 2023, 20:55 Michael Starr wrote: > >> I am having difficulty rendering a form. Does anyone have a CONCISE >> tutorial for me? >> >> Michael >> >> -- >> > You received this message because y

Difficulty Rendering a Form

2023-05-16 Thread Michael Starr
I am having difficulty rendering a form. Does anyone have a CONCISE tutorial for me? Michael -- 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: Form Page URL Not Found

2023-05-01 Thread Michael Starr
d an email, then FormView is for >> you.. Or a normal FBV can work too >> >> >> Best Regards, >> >> Albert >> >> On Tue, 2 May 2023, 02:21 Michael Starr, wrote: >> >>> I made some progress on the error. >>> It's a view er

Re: Form Page URL Not Found

2023-05-01 Thread Michael Starr
] > > You if you are going to url /pet/photoupload/ that is going to call the > first one and process "photoupload" as the slug. > Move the photoupload above the the wildcard entry. > > Dylan > > On Mon, May 1, 2023 at 4:21 PM Michael Starr > wrote: > >> I m

Re: Form Page URL Not Found

2023-05-01 Thread Michael Starr
is bad. Mike On Sunday, April 30, 2023 at 1:43:02 PM UTC-7 Michael Starr wrote: > Hi Alberta. Thank you for the wonderful resource. I like concise > information displays. > > Can you explain, by any chance, when a FormView and when a CreateView are > used? The tutorials also say

Re: Form Page URL Not Found

2023-04-30 Thread Michael Starr
t; > And also don't forget to add the form attr enctype='multipart/form-data' > since it's a file upload field. > > > > Best Regards, > > Albert Ashaba Aheebwa > +256 781 435857 <+256%20781%20435857> > > On Sun, 30 Apr 2023, 05:20 Michael Starr, wrote: > &

Re: Form Page URL Not Found

2023-04-29 Thread Michael Starr
t I don't think this is the cause of the url routing error. Michael On Saturday, April 29, 2023 at 6:27:33 PM UTC-7 Michael Starr wrote: > This isn't the exact name of the error; I'm sure you all have encountered > the bad URL error before. But, it tells me it can't find the pet matching &

Form Page URL Not Found

2023-04-29 Thread Michael Starr
This isn't the exact name of the error; I'm sure you all have encountered the bad URL error before. But, it tells me it can't find the pet matching the query (I'm making a pet website), and it checked the urls in the order listed below. I mean, you know, in the order in the urls.py file.

Re: Import [python django module] could not be resolved from source Pylance (reportMissingModuleSource) -- even though Django is installed in my venv

2023-04-29 Thread Michael Starr
And yeah, django is installed in the venv. Michael On Saturday, April 29, 2023 at 10:40:01 AM UTC-7 Michael Starr wrote: > Thanks. I already have a venv, to answer the first post, and the second, > yes, it says 3.11.2. I think VSCode just has a bug. It doesn't bother me > and my

Re: Import [python django module] could not be resolved from source Pylance (reportMissingModuleSource) -- even though Django is installed in my venv

2023-04-29 Thread Michael Starr
r 3.11.3('.venv':venv) > > The latter is what you are looking for. If it's not, click on whatever is > there and on popup, select the appropriate. > > > > Best Regards, > > Albert Ashaba Aheebwa > +256 781 435857 <+256%20781%20435857> > > On Thu, 27 Apr 2

Re: Import [python django module] could not be resolved from source Pylance (reportMissingModuleSource) -- even though Django is installed in my venv

2023-04-27 Thread Michael Starr
; app runs with no problem? >> I guess the error is that your IDE is not pointing to the correct python >> interpreter >> >> >> On 27 Apr 2023, at 16:05, Michael Starr wrote: >> >> I did pip install django on my venv, which is activated, and it reported >>

Import [python django module] could not be resolved from source Pylance (reportMissingModuleSource) -- even though Django is installed in my venv

2023-04-27 Thread Michael Starr
I did pip install django on my venv, which is activated, and it reported already installed. But the following modules are reporting the error in the subject line: django.db models django.utils.crypto django.urls django.contrib admin django.shortcuts django.views.generic I don't know what's

Report a Django bug how

2023-04-13 Thread Michael Starr
Hi, I double checked my code and Django is not displaying images. I'd like to report the bug but I need to be a django employee to do that. So, if anyone knows anyone on linkedin that works for django, tell them images don't display (on an operating system). Michael -- You received this

Re: Image uploaded to database but not displaying

2023-04-12 Thread Michael Starr
 PM UTC-7 Michael Starr wrote: > settings.py > """ > Django settings for pet_memorial project. > > Generated by 'django-admin startproject' using Django 2.2.12. > > For more information on this file, see > https://docs.djangoproject.com/en/2.2/topics/sett

Re: Image uploaded to database but not displaying

2023-04-12 Thread Michael Starr
handler for your media files at path(‘media/‘,…(, and the path stored in your db is almost definitely correct. The handler you will probably use in development mode will look something like your dev static files config, except for MEDIA_URL and pointing to the file system location where they are actu

Re: Image uploaded to database but not displaying

2023-04-12 Thread Michael Starr
t path(‘media/‘,…(, and the path stored in > your db is almost definitely correct. The handler you will probably use in > development mode will look something like your dev static files config, > except for MEDIA_URL and pointing to the file system location where they > are actually being upl

Tutorial for a Django web store

2023-04-12 Thread Michael Starr
Does anyone know of a good tutorial (preferably with github files) that teaches you how to make a web store in Django? It seems like a basic literacy skill for Django programming. Let me know. Thanks. Michael -- You received this message because you are subscribed to the Google Groups

Image uploaded to database but not displaying

2023-04-12 Thread Michael Starr
I am finding that the url of files stored in a database with Django is automated to /media/[filename], which is neat, because that keeps it organized and from images being everywhere. However, only the alt text of my file shows--the url is correct but the image doesn't show. I've tried using

Re: Using the URLconf defined in iblogs.urls, Django tried these URL patterns, in this order:

2023-04-11 Thread Michael Starr
You probably weren't careful enough following instructions. The beginner's tutorial is self-contained and allows a complete Django project to be made. Re-read everything word-for-word and then come back with some hypotheses for us to test for you. Michael On Tuesday, April 4, 2023 at 9:44:38 

Spies in California and America

2023-03-28 Thread Michael Starr
So does anyone have an update on the police state and spying of Democrat Ukrainians in America yet? Michael -- 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: "Fat" vs "Lean" or better "Fit" Use of Electrical Information Devices

2023-03-24 Thread Michael Starr
One more: Fat: Sending yourself emails as a means of storing information Fit: Writing it down somewhere instead Mike On Friday, March 24, 2023 at 3:58:47 PM UTC-7 Michael Starr wrote: > What are the properties of "fat" computer usage? > What are the properties of "fit&q

Re: "Fat" vs "Lean" or better "Fit" Use of Electrical Information Devices

2023-03-24 Thread Michael Starr
I'll start: Fat: Storing files you don't actually need because you "might need them *someday*" Fit: Deleting or better yet, archiving those files Mike On Friday, March 24, 2023 at 3:58:47 PM UTC-7 Michael Starr wrote: > What are the properties of "fat"

"Fat" vs "Lean" or better "Fit" Use of Electrical Information Devices

2023-03-24 Thread Michael Starr
What are the properties of "fat" computer usage? What are the properties of "fit" computer usage? I find I fall into the former category. :( -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and stop receiving

Improving your Stack Overflow score

2023-03-22 Thread Michael Starr
I don't get that website. There are assholes in the thousands, and good-intentioned people like me at <10. What is the deal? I don't even know what that site is for sometimes. The questions with good ratings are usually stupid and don't explain things correctly, with bad answers. It's a

How to get fresh air

2023-03-12 Thread Michael Starr
How do you get fresh air in your house? -- 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

Re: How to fight Russia in America

2023-03-12 Thread Michael Starr
I'll roll over and die then. Thank you for contributing to the Russian cause. My parents would be proud. On Sunday, March 12, 2023 at 3:37:58 PM UTC-7 Sebastian Jung wrote: > Please stop this propaganda... This haven't nothing to do with django > > Michael Starr schrieb am So., 12.

How to fight Russia in America

2023-03-12 Thread Michael Starr
Russia's influence in America is powerful. How do you fight it? -- 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

Re: Trying to render images from database

2023-03-10 Thread Michael Starr
in this thread. On Tuesday, March 7, 2023 at 4:09:04 PM UTC-8 Red Plant wrote: > If not, check each img src using your browser's dev tools. > > On Wed, Mar 8, 2023 at 8:07 AM Red Plant wrote: > >> Have you checked each img src? >> >> On Wed, Mar 8, 2023 at 6:17 AM Mic

Re: Trying to render images from database

2023-03-07 Thread Michael Starr
I am using FireFox. On Tuesday, March 7, 2023 at 2:11:38 PM UTC-8 Michael Starr wrote: > this.window.gBrowserInit is undefined ext-browser.js:1134 > get activeTab chrome://browser/content/parent/ext-browser.js:1134 > candidates chrome://extensions/content/parent/ext-tabs-bas

Re: Trying to render images from database

2023-03-07 Thread Michael Starr
self-hosted:810 On Tuesday, March 7, 2023 at 1:58:12 PM UTC-8 Red Plant wrote: > What's showing on the browser console? > > If you're using chrome, press F12 to open developer tools, then find the > console tab. > > On Wed, Mar 8, 2023, 1:31 AM Michael Starr wrote: >

Re: Trying to render images from database

2023-03-07 Thread Michael Starr
this https://docs.djangoproject.com/en/4.1/topics/files/ seems useful, but isn't really for me. Mike On Tuesday, March 7, 2023 at 9:31:02 AM UTC-8 Michael Starr wrote: > Well, my privilege of posting "" on SO was revoked so I can't get my > questions answered anymore. So I gu

Re: Trying to render images from database

2023-03-07 Thread Michael Starr
it appends a six digit ASCII text thingy to the filename, so the filename isn't actually correct even, anymore. So many problems. Django is NOT the api for perfectionists with deadlines. Mike On Saturday, March 4, 2023 at 3:31:30 PM UTC-8 Michael Starr wrote: > Thank you Sandip. I missed tha

Function-based Views vs Class-based Views

2023-03-06 Thread Michael Starr
What are the pros and cons of either method of rendering HTTP request responses? https://www.geeksforgeeks.org/class-based-vs-function-based-views-which-one-is-better-to-use-in-django/ In the article above it states that CBVs are DRYer, but I don't understand why. The article doesn't explain,

Re: Ordering of code

2023-03-03 Thread Michael Starr
/questions/4162456/forward-declaration-of-classes > https://erdantic.drivendata.org/v0.4/forward-references/ > > Regards, > /d > > ------ Original Message -- > From "Michael Starr" > To "Django users" > Date 3/4/2023 7:43:18 AM > Subject Ord

Trying to render images from database

2023-03-03 Thread Michael Starr
It's not working. class PetOwnerDetailView(DetailView): model = PetOwner context_object_name = "owner" template_name = "pet_owner_profile.html" def get_context_data(self, *args, **kwargs): context = super().get_context_data(**kwargs) context['pet_photos'] = {}

Can't render images from database

2023-03-03 Thread Michael Starr
My next issue is that I'm having difficulty displaying images stored in the database. It's a mouthful so I'll spare you, but I'll add details as I go along. Michael -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this

Re: django.db.utils.OperationalError: foreign key mismatch - "pet_profile_petphoto_pet" referencing "pet_profile_petphoto"

2023-03-03 Thread Michael Starr
an ACTUAL migration. Nifty command to know. Michael On Thursday, March 2, 2023 at 2:19:52 PM UTC-8 Michael Starr wrote: > Now I am trying > > https://stackoverflow.com/questions/28385919/django-no-such-table-for-custom-user-profile-why > But it doesn't get rid of > OperationalError at /ad

Ordering of code

2023-03-03 Thread Michael Starr
Does anyone know why in django models (and I don't know how it is in etc. python), you can define a function below, and use it above in the code, but a class can't reference a class defined later in the code, or it won't find it? That seems like beyond stupid to me. Michael -- You received

Re: django.db.utils.OperationalError: foreign key mismatch - "pet_profile_petphoto_pet" referencing "pet_profile_petphoto"

2023-03-02 Thread Michael Starr
at 2:02:36 PM UTC-8 Michael Starr wrote: > Including not even finding the basic model field Pet, the most basic thing > OperationalError at /admin/pet_profile/pet/ no such table: pet_profile_pet > It's totally effed. > > Michael > On Thursday, March 2, 2023 at 2:01:15 PM UTC-8 M

Re: django.db.utils.OperationalError: foreign key mismatch - "pet_profile_petphoto_pet" referencing "pet_profile_petphoto"

2023-03-02 Thread Michael Starr
Including not even finding the basic model field Pet, the most basic thing OperationalError at /admin/pet_profile/pet/ no such table: pet_profile_pet It's totally effed. Michael On Thursday, March 2, 2023 at 2:01:15 PM UTC-8 Michael Starr wrote: > This > > https://stackoverflow.com/

Re: django.db.utils.OperationalError: foreign key mismatch - "pet_profile_petphoto_pet" referencing "pet_profile_petphoto"

2023-03-02 Thread Michael Starr
This https://stackoverflow.com/questions/62726885/foreign-key-mismatch-comment-referencing-chellenge seems to work, but now I am getting a slew of database table model errors. On Wednesday, March 1, 2023 at 12:35:59 PM UTC-8 Michael Starr wrote: > I even deleted the pet field from pet_ph

NoReverseMatch--Seems that Django doesn't detect the app url

2023-02-25 Thread Michael Starr
I have a pet memorial project, and some urls in pet_memorial pet memorial urls.py from django.contrib import admin from django.urls import path, include from . import views urlpatterns = [ path('admin/', admin.site.urls), path('home/', views.HomeView.as_view(), name='home_view'),

Re: Forum on WhatsApp

2022-12-23 Thread Michael Starr
You might want to explain a little bit more if you want people to join, which is what I'm guessing you want. Mike On Thursday, December 22, 2022 at 2:55:04 PM UTC-8 julika...@gmail.com wrote: > https://chat.whatsapp.com/COaaB3ss9YoGJQNoGm8K6s > -- You received this message because you are

Re: Need help Scraping a couple of websites

2022-12-23 Thread Michael Starr
Yeah it's not a DDOS or anything. They are providing the movie information on their site, from their databases, as-is and without warranty. That means you can do whatever you want with it to the fullest extent of criminal law. But maybe I have no idea what I'm talking about. Cheers, Mike On

Re: What are the default entries in a context dictionary, context[], from a View?

2022-12-22 Thread Michael Starr
ere is an entry in Pet ("Mocha"). Mike On Thursday, December 22, 2022 at 5:17:34 PM UTC-8 Michael Starr wrote: > I got an answer for ListView here > <https://stackoverflow.com/questions/60156251/get-context-data-method-django> > but I don't know if that's the same for all

Re: What are the default entries in a context dictionary, context[], from a View?

2022-12-22 Thread Michael Starr
I got an answer for ListView here <https://stackoverflow.com/questions/60156251/get-context-data-method-django> but I don't know if that's the same for all views. Probably not would be my guess. Mike On Thursday, December 22, 2022 at 3:05:34 PM UTC-8 Michael Starr wrote: > I am

What are the default entries in a context dictionary, context[], from a View?

2022-12-22 Thread Michael Starr
I am starting to understand context dictionaries, and I figured out from some Googling that the get_context_dictionary method belongs in a View, the one that you want to provide entries for its corresponding template. My question is somewhat academic: Why can't I just use the context

Re: URL evaluates to 'slug' literally instead of the variable slug

2022-12-20 Thread Michael Starr
No reply yet, so bump. On Friday, December 16, 2022 at 5:51:14 PM UTC-8 Michael Starr wrote: > I hope someone is still subscribed to this post. I had another question... > > I looked up your link, about context dictionary, presumably to modify the > value returned by the function, l

Re: URL evaluates to 'slug' literally instead of the variable slug

2022-12-16 Thread Michael Starr
on Django, so no problems there (so far). I think that's it, actually. Thanks in advance, hugely appreciate any help anyone can offer. Best, Mike On Thursday, December 15, 2022 at 2:54:59 PM UTC-8 Michael Starr wrote: > Sorry for that crass, asinine comment. I had a flare up of my condition. >

Re: URL evaluates to 'slug' literally instead of the variable slug

2022-12-15 Thread Michael Starr
Sorry for that crass, asinine comment. I had a flare up of my condition. Thank you all for the help. Mike On Sunday, December 11, 2022 at 4:32:04 PM UTC-8 Michael Starr wrote: > It's poorly written and mine isn't. Am I better than them. > > On Monday, December 5, 2022 at 6:36:30 AM UTC

Re: URL evaluates to 'slug' literally instead of the variable slug

2022-12-11 Thread Michael Starr
It's poorly written and mine isn't. Am I better than them. On Monday, December 5, 2022 at 6:36:30 AM UTC-8 elvisa...@gmail.com wrote: > Good ! > > Le dim. 4 déc. 2022 à 22:04, Michael Starr a > écrit : > >> Thank you, Peter. I forgot to acknowledge your contributio

Re: URL evaluates to 'slug' literally instead of the variable slug

2022-11-30 Thread Michael Starr
Thank you. Though, that hard codes everything, which is bad. How do I generalize it? Also, this worked. I had to specify template_name = pet_profile.html in the pet detail view. On 11/30/22 7:15 AM, Ryan Nowakowski wrote: On Tue, Nov 29, 2022 at 06:35:25PM -0800, Michael Starr wrote

URL evaluates to 'slug' literally instead of the variable slug

2022-11-30 Thread Michael Starr
Code is first, query is last (below). Thanks in advance. *home directory urls.py* from django.contrib import admin from django.urls import path,include from . import views urlpatterns = [ path("admin/", admin.site.urls, name='admin'), path("", views.Home.as_view(), name="home"),