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"),
path
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
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 c
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
I took 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
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
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
dictionary
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:
&g
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 sa
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 Fr
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 sub
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'),
path
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
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
ch 2, 2023 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:0
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'] = {}
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 grou
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 a
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 t
/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
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, i
oto object, 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 Sandi
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 anymor
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
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
all in a previous post 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 W
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 vie
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
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 the
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 conspira
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 emai
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&quo
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
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 dj
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 AM
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 st
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
"Djang
ia 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 act
the default
generated configuration.
The point is - do not confuse the two, and definitely do not try to tangle
both as it will eventually lead to problems. Configure media separately
from static and you will not encounter any of those problems, especially so
when you get to deploying to p
1:21:23 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/
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 messa
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 wrong
your editor, but the
>> 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 activat
bit or 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>
>
>
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 m
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.
Anothe
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
t; https://ccbv.co.uk/
>
> 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
ory lookup.
QED Django 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
> use
t;
> 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
e send 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
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 django-users+unsub
> 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
53 matches
Mail list logo