I am brand new to Python and Django. I am trying to learn both
simultaneously. I wanted to run the Django tutorial to make sure it works
on my computer, iMac running 10.13.1.
I know I have coding issues, and managed to figure out some of the problems
that I had, but the polls tutorial does not
Correction - The "import include" was mentioned in the tutorial, I missed
it.
I still need help!
On Thursday, 23 November 2017 09:33:35 UTC-5, Carl Brubaker wrote:
>
> I am brand new to Python and Django. I am trying to learn both
> simultaneously. I wanted to run the Djan
Ok, I applied the migration, but it still doesn't work. Maybe this is a
django 2.0 bug that needs worked out. I figured I'd learn 2.0 so I wouldn't
have to relearn after 2.0 releases. The initial check before creating the
"polls app" worked, but it can never find the address. Still need more
he
I figured it out. I had a space in between the "path(' '," single quotes in
the polls.urls and there isn't supposed to be one. Thanks for all of your
help.
--
You received this message because you are subscribed to the Google Groups
"Django users" group.
To unsubscribe from this group and stop
I'm not sure what is wrong, but my template doesn't load correctly. Instead
of what I'm supposed to see I get this in my web browser:
What yo?
Help please!
--
You received this message because you are subscribed to the Google Groups
"Django users" group.
To unsu
I copied it from the django tutorial page:
{% if latest_question_list %}
{% for question in latest_question_list %}
{{ question.question_text
}}
{% endfor %}
{% else %}
No polls are available.
{% endif %}
--
You received this message because you are subscribed to
Code for my view.py
from django.shortcuts import render
from django.http import HttpResponse
from django.http import Http404
from django.shortcuts import render
from django.template import loader
from .models import Question
# Create your views here.
def index(request):
latest_question_list
Tried that one too, as it is further down in the tutorial. Still the same
result.
On Sunday, 10 December 2017 17:52:30 UTC-5, Roberth Solis MartÃnez wrote:
>
> I think its better if you use:
>
> context = {
> 'latest_question_list': latest_question_list,
> }
>
> return render(request, 'po
Alright, so I found out the my text editor was saving my files incorrectly.
Even though it had ".html" it was displaying the whole text in the web
browser, instead of interpreting the the code.
--
You received this message because you are subscribed to the Google Groups
"Django users" group.
T
So there are lots of things I like about the django admin, and somethings I
would like to change. Since django is kinda about not reinventing the
wheel, is there an "app" or file or something where I can find the admin
information to modify it to what I want, and then save it as a new app?
Than
I am trying to make a customer database (name, address, etc) and I need to
be able to add new customers, edit customer info, delete customers, and
search for them through name and phone number (and possibly more). When I
enter the admin site and select my app, I have all of those fields given to
I am trying to make a search field in a template and connect it back to my
database so I can "find" stuff.
I found this in the django docs:
>>> Author.objects.filter(name__unaccent__icontains='Helen')[>> Mirren>, , ]
which is helpful, but I'm having trouble connecting to my template:
I'm not
I did go through the tutorial. I'm reading through the the forms section of
the documentation now. I'm more of a visual learner, so sometimes I have to
read things 10 times til it makes sense. Thanks for your help!
--
You received this message because you are subscribed to the Google Groups
"D
I'm going through the Mozilla Django tutorial and I can't get the template
namespacing to work. If I leave the templates in the "templates" folder,
all is well. When I try to move them to the "templates/catalog" folder it's
nothing but errors. I think it might have something to with the
"base_g
So I'm not exactly sure what happened. I made a second "locallibrary"
program that worked and then compared all of my files, because after I
tried to change my original one back to the way Mozilla lays it out, it
still wouldn't work. When I repasted the catalog/views.py file contents, it
worked
I've been trying to make a form that will get customer information:
First Name Last NameMI
(etc)
and have been running into issues I can't seem to resolve without doing it
the hard way. I was just wondering if there was an easier method?
Using generic views and edit views, the ite
I'm probably missing something simple, but I can't get my info to display
from my database.
I have 2 abstract models to make 1 normal model.
My url views aren't giving me errors, the web browser finds them.
My variables aren't correct(I can only assume).
Thanks!
--
You received this message be
Added urls file
On Tuesday, 13 March 2018 10:40:29 UTC-4, Derek wrote:
>
> Maybe you need to show what your urls.py looks like as well?
>
> On Tuesday, 13 March 2018 05:57:55 UTC+2, Carl Brubaker wrote:
>>
>> I'm probably missing something simple, but I can't
We could use some code from your myapp/urls.py and your myapp/polls/urls.py
files. Without it, we don't know what is wrong.
On Thursday, 15 March 2018 20:03:57 UTC-4, Denny Terreno wrote:
>
> Hello,
> I'm new to django, and I'm trying to learn it, but I'm stuck on the 1st
> part of the tutorial:
I'm trying to make my own phone number form, and I'm having trouble with
number validation.
Since international numbers can use "(40) (30)" I want to check that only
numbers were entered. I can't seem to make it work though.
def clean_international(self):
data = self.cleaned_data['inte
Guilty as charged! Now that you mention "not", I remember seeing that in a
tutorial.
As for doing it again, I hate my job and don't have time or resources to
quit and go to school, so I'm trying to learn on the fly. I hope to write a
program to do my current job, because, so far, the ones I've
I am having much trouble getting an AJAX search to work. I am working with
django 2, and all the examples and tutorials I can find are django 1.x. The
code that I have that almost worked once(I think - it put the request
through but never displayed results) has been greatly butchered as I've
tr
22 matches
Mail list logo