Re: Emails using django

2019-03-06 Thread Harryxon Ndegwa
Can u send a screenshot of your project directory structure showing the
templates directory. That is where the problem is

On Wed, 6 Mar 2019 12:57 pm raghav b  I am trying to send emails with Django and calling a text file as the body
> but it keeps throwing an error that the template can't be found. I have
> defined and imported templates correctly but is not working. Any ideas how
> I can make this work? Thanks.
>
> --
> 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 django-users@googlegroups.com.
> Visit this group at https://groups.google.com/group/django-users.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/django-users/ad5f1a59-9e30-41dc-a98b-b5408d9d385b%40googlegroups.com
> .
> For more options, visit https://groups.google.com/d/optout.
>

-- 
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 django-users@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CAPqDb9P-Kz0-3EsZLCdR6jSJiVN%3D%3DTNjYhZn8HxLtvhpN_qxSA%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


[no subject]

2019-03-05 Thread Harryxon Ndegwa
Hae everyone

Can anyone recommend a django resource to build an online payment site like
paypal.
Thankyou

-- 
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 django-users@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CAPqDb9Nz2pzSUnZY9BEQQySK4CJDP%2BjO4m%3D5%3DJ31wRLhGEhubw%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: Problems with first program

2019-03-01 Thread Harryxon Ndegwa
The problem is with the indentation,the question_text field is wrongly
indented.ensure you have a python friendly IDE or text editor

On Fri, 1 Mar 2019 3:06 am bob gailer  On 2/28/2019 6:08 PM, Edvani Pascoal wrote:
> > hey guys I'm beginner on django I never worked with this framework
> > before and then I've problems to started polls app this is the error:
> >
> deleting most of the traceback since in this case it is not relevant.
> >   File "/home/edvani/django-test/djangoproject/polls/models.py", line 5
> > question_text = models.CharField(max_length=200)
> > ^
> > IndentationError: expected an indented block
> >
> Here is the head of models.py, as copied from the tutorial
>
> from django.db import models
>
>
> class Question(models.Model):
>  question_text = models.CharField(max_length=200)
>
> Your copy of that file is different. Statement that end in : must be
> followed by at least one indented line. These are known as "compound
> statements" (if, elif, else, while, for, try, except, finally, with).
>
> --
> Bob Gailer
>
>
> ---
> This email has been checked for viruses by Avast antivirus software.
> https://www.avast.com/antivirus
>
> --
> 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 django-users@googlegroups.com.
> Visit this group at https://groups.google.com/group/django-users.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/django-users/580f4cd8-1d87-56a0-7548-c20e26e3e446%40gmail.com
> .
> For more options, visit https://groups.google.com/d/optout.
>

-- 
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 django-users@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CAPqDb9NK6bLX80R1LXC6OCe5TM-bPB51u-6AwX1mhtSAPscgzw%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: looking for team members as my technical Advisory

2019-02-25 Thread Harryxon Ndegwa
Hello am interested and would like to participate in this,from nairobi kenya

On Mon, 25 Feb 2019 8:50 pm khaled hadjali  Hello I’m interested , contact me if you would
>
> On Fri, Feb 22, 2019 at 11:02 AM Nura Bash  wrote:
>
>> Good day, all am Nura bashir CEO of Teamlead enterprise Nigeria, am
>> looking for Technical advisory members for my project which am about to
>> start here in West Africa, is a plot project from 10 selected schools to
>> help train  kids django..
>>
>> If any one is interested I can be reach out via whatpp +23434832618 or my
>> email nurabas...@gmail.com
>> Thank you
>>
>> --
>> 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 django-users@googlegroups.com.
>> Visit this group at https://groups.google.com/group/django-users.
>> To view this discussion on the web visit
>> https://groups.google.com/d/msgid/django-users/4298c126-9392-4691-a40b-51420ebbaea1%40googlegroups.com
>> .
>> For more options, visit https://groups.google.com/d/optout.
>>
> --
> 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 django-users@googlegroups.com.
> Visit this group at https://groups.google.com/group/django-users.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/django-users/CAGFKkjw7zNim2nGJ%3DBcwOmH6bq_6jar2JikxFae4Ctwn-NPM%2Bw%40mail.gmail.com
> 
> .
> For more options, visit https://groups.google.com/d/optout.
>

-- 
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 django-users@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CAPqDb9PMP3i5RZNYKK3cd3tXa9O-hTQa0Atmxia59-FMsfcFFg%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: Error while running a project

2019-01-17 Thread Harryxon Ndegwa
did u install psycopg2 using pip,
that is, pip install psycopg2
i see its a connection error make sure u have psycopg2 connector installed
in your environment

#%£&

On Thu, 17 Jan 2019 6:22 pm Nadhem Zmandar  I am beginner with Django. I've downloaded an open source Django project
> to start learning and I've installed PostGres and PgAdmin and tested
> them.and I have checked all details in the settings.py (especially the
> password) to link the project to the database created on PgAdmin.
> However when I run the project I have this error
>
> PS D:\django\btre_project-master> python manage.py runserver
> Performing system checks...
>
> System check identified no issues (0 silenced).
> Unhandled exception in thread started by  check_errors..wrapper at 0x04394300>
> Traceback (most recent call last):
>   File
> "C:\Users\nadhem\AppData\Local\Programs\Python\Python37-32\lib\site-packages\django\db\backends\base\base.py",
> line 216, in ensure_connection
> self.connect()
>   File
> "C:\Users\nadhem\AppData\Local\Programs\Python\Python37-32\lib\site-packages\django\db\backends\base\base.py",
> line 194, in connect
> self.connection = self.get_new_connection(conn_params)
>   File
> "C:\Users\nadhem\AppData\Local\Programs\Python\Python37-32\lib\site-packages\django\db\backends\postgresql\base.py",
> line 178, in get_new_connection
> connection = Database.connect(**conn_params)
>   File
> "C:\Users\nadhem\AppData\Local\Programs\Python\Python37-32\lib\site-packages\psycopg2\__init__.py",
> line 130, in connect
> conn = _connect(dsn, connection_factory=connection_factory, **kwasync)
> psycopg2.OperationalError: FATAL:  password authentication failed for user
> "postgres"
>
>
> The above exception was the direct cause of the following exception:
>
>
> Traceback (most recent call last):
>   File
> "C:\Users\nadhem\AppData\Local\Programs\Python\Python37-32\lib\site-packages\django\utils\autoreload.py",
> line 225, in wrapper
> fn(*args, **kwargs)
>   File
> "C:\Users\nadhem\AppData\Local\Programs\Python\Python37-32\lib\site-packages\django\core\management\commands\runserver.py",
> line 120, in inner_run
> self.check_migrations()
>   File
> "C:\Users\nadhem\AppData\Local\Programs\Python\Python37-32\lib\site-packages\django\core\management\base.py",
> line 442, in check_migrations
> executor = MigrationExecutor(connections[DEFAULT_DB_ALIAS])
>   File
> "C:\Users\nadhem\AppData\Local\Programs\Python\Python37-32\lib\site-packages\django\db\migrations\executor.py",
> line 18, in __init__
> self.loader = MigrationLoader(self.connection)
>   File
> "C:\Users\nadhem\AppData\Local\Programs\Python\Python37-32\lib\site-packages\django\db\migrations\loader.py",
> line 49, in __init__
> self.build_graph()
>   File
> "C:\Users\nadhem\AppData\Local\Programs\Python\Python37-32\lib\site-packages\django\db\migrations\loader.py",
> line 212, in build_graph
> self.applied_migrations = recorder.applied_migrations()
>   File
> "C:\Users\nadhem\AppData\Local\Programs\Python\Python37-32\lib\site-packages\django\db\migrations\recorder.py",
> line 61, in applied_migrations
> if self.has_table():
>   File
> "C:\Users\nadhem\AppData\Local\Programs\Python\Python37-32\lib\site-packages\django\db\migrations\recorder.py",
> line 44, in has_table
> return self.Migration._meta.db_table in
> self.connection.introspection.table_names(self.connection.cursor())
>   File
> "C:\Users\nadhem\AppData\Local\Programs\Python\Python37-32\lib\site-packages\django\db\backends\base\base.py",
> line 255, in cursor
> return self._cursor()
>   File
> "C:\Users\nadhem\AppData\Local\Programs\Python\Python37-32\lib\site-packages\django\db\backends\base\base.py",
> line 232, in _cursor
> self.ensure_connection()
>   File
> "C:\Users\nadhem\AppData\Local\Programs\Python\Python37-32\lib\site-packages\django\db\backends\base\base.py",
> line 216, in ensure_connection
> self.connect()
>   File
> "C:\Users\nadhem\AppData\Local\Programs\Python\Python37-32\lib\site-packages\django\db\utils.py",
> line 89, in __exit__
> raise dj_exc_value.with_traceback(traceback) from exc_value
>   File
> "C:\Users\nadhem\AppData\Local\Programs\Python\Python37-32\lib\site-packages\django\db\backends\base\base.py",
> line 216, in ensure_connection
> self.connect()
>   File
> "C:\Users\nadhem\AppData\Local\Programs\Python\Python37-32\lib\site-packages\django\db\backends\base\base.py",
> line 194, in connect
> self.connection = self.get_new_connection(conn_params)
>   File
> "C:\Users\nadhem\AppData\Local\Programs\Python\Python37-32\lib\site-packages\django\db\backends\postgresql\base.py",
> line 178, in get_new_connection
> connection = Database.connect(**conn_params)
>   File
> "C:\Users\nadhem\AppData\Local\Programs\Python\Python37-32\lib\site-packages\psycopg2\__init__.py",
> line 130, in connect
> conn = _connect(dsn, connection_factory=connection_factory, **kwasync)
> django.db.utils.OperationalError: FATAL:  

Re: Help with djangoproject

2019-01-02 Thread Harryxon Ndegwa
hi joseph,
send a screenshot of the error and the code u have written so far to get
the error

#%£&

On Wed, 2 Jan 2019 5:10 pm Joseph Gichuki   Hi am new to Django and I can't get past the Django localhost :8000 to
> advance my project to the next step . I keep getting an error:   localhost
> refused to connect. what should I do ?
>
> --
> 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 django-users@googlegroups.com.
> Visit this group at https://groups.google.com/group/django-users.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/django-users/621ac5d3-ad97-45b9-a6f6-0da4ffc58370%40googlegroups.com
> 
> .
> For more options, visit https://groups.google.com/d/optout.
>

-- 
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 django-users@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CAPqDb9PxLxk%3DrzB%2Bm46x9zFOH%3DCmYhF3kGN90xxaKNcxs6HC%3Dg%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: html canges not update

2018-12-22 Thread Harryxon Ndegwa
if using a text editor like sublime text or atom make sure u have saved
your files changes before running the server

#%£&

On Thu, 20 Dec 2018 2:50 am Ryan Nowakowski  What directory are your templates in?
>
> On December 18, 2018 11:06:03 PM CST, fofazu...@gmail.com wrote:
>>
>> hi
>> i  i am a new in django and i have a practice project, changes in
>> templates is not updates
>>
>> --
> 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 django-users@googlegroups.com.
> Visit this group at https://groups.google.com/group/django-users.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/django-users/805E61B9-2654-4430-B804-9EBE7B04B9CF%40fattuba.com
> 
> .
> For more options, visit https://groups.google.com/d/optout.
>

-- 
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 django-users@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CAPqDb9PaUvbtGSs%3D7LPPx%3Dzx6WnJDJFOEs0cvnYEYrgwv6UArQ%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: help

2018-12-11 Thread Harryxon Ndegwa
add a slash after the dailytask ie 'dailytask/' in your url

#%£&

On Tue, 11 Dec 2018 5:25 pm Tosin Ayoola  getting this error when i click on a new link i just added please can
> anyone help out below is my codes, views, url
>
>
> ##url
>
> from django.urls import path
> from . import views
>
> urlpatterns = [
>   path('', views.index, name = 'index'),
>   path('dailytask', views.dailyactivities, name = 'dailyactivities'),
>
> ]
>
> ## views
>
> from django.shortcuts import render, redirect
> from . import  models
> from . forms import DailyTaskForm
> def index(request):
>   return render(request, 'index.html')
>
> def dailyactivities(request):
>   tasks = DailyTaskForm(request.method == 'POST' or None)
>   if request.method == 'POST' and tasks.is_valid()\
> and tasks.cleaned_data():
>   tasks.save()
>   return render(request, 'index')
>
>   return redirect(request, 'dailychoresform.html')
>
>
> --
> 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 django-users@googlegroups.com.
> Visit this group at https://groups.google.com/group/django-users.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/django-users/CAHLKn70uUYa4j5Bd-6fv8UeuitLx0W4JefAi7Hid84%2BP1SzMLg%40mail.gmail.com
> 
> .
> For more options, visit https://groups.google.com/d/optout.
>

-- 
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 django-users@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CAPqDb9MN8AeveUcCFWji%3DBGASHyoHBoUWgThxRsE%2BBbKu8zXpA%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: from django.urls import include , path ImportError: cannot import name include

2018-12-04 Thread Harryxon Ndegwa
use  django.urls import path instead to import path

#%£&

On Tue, 4 Dec 2018 7:06 pm Dheeraj Kumar  thanks to respond me but still having an issue.
>
> from django.contrib import admin
> from django.conf.urls import include, path
>
> urlpatterns = [
> path('boadts/', include ('boadts.urls')),
> path('admin/',admin.site.urls),
> ]
>  File "/home/myproject/myproject/myproject/urls.py", line 2, in 
> from django.conf.urls import include, path
> ImportError: cannot import name path
>
> please tell.
>
> On Tue, 4 Dec 2018 at 19:40, C. Kirby  wrote:
>
>> from django.conf.urls import include
>>
>>
>> you are missing conf
>>
>> On Tuesday, December 4, 2018 at 8:21:39 AM UTC-5, tal...@gmail.com wrote:
>>>
>>> plz advise...
>>>
>> --
>> 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 django-users@googlegroups.com.
>> Visit this group at https://groups.google.com/group/django-users.
>> To view this discussion on the web visit
>> https://groups.google.com/d/msgid/django-users/f2a4a58b-2c9b-4710-8801-e24e9fdf1b45%40googlegroups.com
>> 
>> .
>> For more options, visit https://groups.google.com/d/optout.
>>
> --
> 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 django-users@googlegroups.com.
> Visit this group at https://groups.google.com/group/django-users.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/django-users/CANwUEV8cExZZKFPJX7VLOwAxn5COVa2P6v4qjRpqY%3Di2e%3DCy-A%40mail.gmail.com
> 
> .
> For more options, visit https://groups.google.com/d/optout.
>

-- 
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 django-users@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CAPqDb9NwUqQgnUVyovqhMu%3DB7gX9P0vhzhnakOkQgu0D6B%2Bz3Q%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.