Watch "Django on pythonanywhere." on YouTube

2019-06-06 Thread Alex Kimeu
https://youtu.be/3B2yALSpqFg -- 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 post to this group, send email to djan

Re: python manage.py makemirations

2019-05-29 Thread Alex Kimeu
You have to add your app in the settings.py file then migrate. On Wed, 29 May 2019, 21:22 Robert Wahoo, wrote: > Regardless, it’s not an issue. Just migrate > > > > > > *From: *"django-users@googlegroups.com" > on behalf of sagar ninave > *Reply-To: *"django-users@googlegroups.com" > > *Date

Re: python manage.py makemirations

2019-05-29 Thread Alex Kimeu
That's ok. There's no any problem. Just go ahead and migrate. On Wed, 29 May 2019, 21:18 Robert Wahoo, wrote: > Did you make model changes? > > > > *From: *"django-users@googlegroups.com" > on behalf of sagar ninave > *Reply-To: *"django-users@googlegroups.com" > > *Date: *Wednesday, May 29,

Re: Django Model Forms.

2019-05-17 Thread Alex Kimeu
Thanks. Makes sense. Let me try it. Thanks. On Fri, 17 May 2019, 14:18 Joe Reitman, wrote: > In your template you can identify each field by its name and use a table > to render them in columns. e.g. > > table > table row > table data {{ form.username }} > table data {{ form.password }

Re: ModuleNotFoundError: No module named 'sample,'

2019-03-07 Thread Alex Kimeu
Do you have a model named Sample in your models.py file of your app?? On Thu, 7 Mar 2019, 13:00 Robin Riis, wrote: > from .models import Sample > > Den tors 7 mars 2019 10:44 skrev: > >> Hi Team >> >> My project name is Sample >> While I am trying to connect database with models.py >> I am find

Re:

2019-02-23 Thread Alex Kimeu
I think the issue is in your models.py . Kindly share your polls models. On Fri, 22 Feb 2019, 16:18 Vivek Bhavsar, wrote: > You should put the dot(period) after the polls > For eg:. python manage.py makemigrations polls . > > NOTE: There is space between polls and dot(period) > > > Thanks > > On

Re: TemplateDoesNotExist at /vmail/inbox/

2019-02-04 Thread Alex Kimeu
It means the template you are trying to render is either not created or not in the location where Django expects to be. Django does not see the template you are trying to render. On Tue, 5 Feb 2019, 04:28 senthu nithy I am doing a project using Django. I got this error. I don't understand > what

Re: User profile

2019-01-17 Thread Alex Kimeu
First you need to create a model for the User Profile. On Thu, 17 Jan 2019, 17:49 ANi Do you mean you want to create your custom user model? > Two ways to do it, > 1. create a profile model and use foreign key to the user model that > Django provided. > 2. create a custom user model like this > h

Re: Django UserForm Help Texts

2019-01-14 Thread Alex Kimeu
return redirect('quiz:quiz-index') else: form = UserRegisterForm() return render(request, 'users/register.html', {'form': form}) On Mon, Jan 14, 2019 at 11:39 PM Alex Kimeu wrote: > *views.py* > > > On Mon, Jan 14, 2019 at 11:36 PM Ne

Re: working fine with sqllite but not showing result in mysql

2019-01-14 Thread Alex Kimeu
publish__day=day) > > return render(request, > 'blog/post/details.html', > {'post': post}) > > class PostListView(ListView): > queryset = Post.published.all() > context_object_name = 'posts'

Re: working fine with sqllite but not showing result in mysql

2019-01-14 Thread Alex Kimeu
Have you configured MySQL correctly? On Mon, Jan 14, 2019 at 9:07 PM tribhuvan kishor < tribhuvankishor...@gmail.com> wrote: > this view is retrieving data with SQlite but not fetching data in > MySQL saying no data found. > > > def post_detail(request, year, month, day, post): > post = get_o

Re:

2019-01-02 Thread Alex Kimeu
Is your server running? On Wed, Jan 2, 2019 at 6:30 PM Joseph Gichuki wrote: > > > Here it is > > Sent from Mail for > Windows 10 > > -- > You received this message because you are subscribed to the Google Groups > "Django users" group. > To unsub

Re: TypeError at /users/login/ login() got an unexpected keyword argument 'template_name'

2018-08-27 Thread Alex Kimeu
*#Import auth views* from django.contrib.auth import views as auth_views *#Use the views in the url* path('login/', auth_views.LoginView.as_view(), name='login'), Happy coding! On Mon, Aug 27, 2018 at 6:29 PM Tim Vogt (Tim Vogt) wrote: > Hi Jason, > Thank ! > > my urls.py in /users looks li