Re: Python Django Training

2020-02-20 Thread Umar Kambala
Plz add me to the WhatsApp group if there's any +233(0)203502038 thanks
On Feb 1, 2020 1:42 PM, "Srikanth K"  wrote:

> Hi,
>
> I am from Hyderabad. I am Python Developer by Profession. I am eager take
> up any Python , Django Training (online Preferrable or Weekends). Members
> who require can contact me or share me  there idea.
>
> Regards,
> Srikanth.K
>
> --
> 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 web visit https://groups.google.com/d/
> msgid/django-users/CACPyz-gXb7wo9E0Uhs_pnxF9X52uA10__
> Fq1xt4trjXUaN3ehQ%40mail.gmail.com
> 
> .
>

-- 
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 web visit 
https://groups.google.com/d/msgid/django-users/CAPkbFbYxXSXtQy2qJHmhSTSnLdmyuM0aMJJdF5c25PtamGXmTA%40mail.gmail.com.


Re: Python Django Training

2020-02-03 Thread Umar Kambala
Add me to the group please.. +233(0)203502038
On Feb 2, 2020 6:50 PM, "Nabil Mokhtar"  wrote:

> Ok we now have many interested members
> Any one suggest group app we can share material on it with our questions
> to keep us connected
>
> On Sun, Feb 2, 2020, 20:11 Sarvesh singh  wrote:
>
>> I m also want to learn.
>>
>> --
>> 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 web visit https://groups.google.com/d/
>> msgid/django-users/6d5c9ce0-50b7-4391-9f2b-f192a41d1b89%
>> 40googlegroups.com.
>>
> --
> 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 web visit https://groups.google.com/d/
> msgid/django-users/CAKgi3KEAjaUbLrCb2C3V-QmM1P42iWMKb3U8MisN9BxqdpZAiw%
> 40mail.gmail.com
> 
> .
>

-- 
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 web visit 
https://groups.google.com/d/msgid/django-users/CAPkbFbY%2B4WQ0Rrf6ctLF97Bnh7Z4EgJPAFcUVAP3bvf2umoxfQ%40mail.gmail.com.


Hi

2018-09-03 Thread Umar Kambala
Plz how do I add pictures to my poll questions? I have successfully
completed the tutorials and I now wants to modified my site to have images
so that people can vote.

-- 
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/CAPkbFbaDG%2BY%2BVKMFq-xHHQMwKazwkivJJJQ8vtQZZAJ%2BbR2iHQ%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Help

2018-07-18 Thread Umar Kambala
I have been getting this error

ValueError at /signup/

The view accounts.views.signup didn't return an HttpResponse object. It
returned None instead.

This are the codes

*accounts/**views.py*

from django.contrib.auth import login as auth_login from
django.contrib.auth.forms import UserCreationForm from django.shortcuts
import render, redirect def signup(request): if request.method == 'POST':
form = UserCreationForm(request.POST) if form.is_valid(): user =
form.save() auth_login(request, user) return redirect('home') else: form =
UserCreationForm() return render(request, 'signup.html', {'form': form})

-- 
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/CAPkbFba3o99dr8Ze7%2BN7c2Ejx8XZ4gUvVe%2Bi4ZiDF5oDSBc%2Bnw%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: Needs help

2018-07-12 Thread Umar Kambala
That's what I have been trying since, but it's not going through
On Jul 12, 2018 9:01 AM, "Mike Dewhirst"  wrote:

> Try http://127.0.0.1:8000
>
> On 12/07/2018 6:40 PM, Umar Kambala wrote:
>
>>
>> Kasper thanks for your brotherly advice, please I will be glad next time
>> u add me a link. But I came across another error, when I run python
>> manage.py runserver everything work find but when I enter 127.0.0.1 I gets
>> "no internet connection" do I hv to be connected wit internet before I can
>> access de local server?
>>
>> On Jul 9, 2018 11:57 AM, "Kasper Laudrup" > laud...@stacktrace.dk>> wrote:
>>
>> Hi Umar.
>>
>> On 07/09/2018 01:52 PM, Umar Kambala wrote:
>>
>>
>> This is the error
>>
>> url(r'^$', views.home, name='home')
>> attributeError: module 'boards.views' has no attribute 'home'
>>
>>
>> Do you know what a Python module is and what an attribute on a
>> module means? Then the answer is obvious.
>>
>> Try to read up on that.
>>
>> Kind regards,
>>
>> Kasper Laudrup
>>
>> -- 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
>> <mailto:django-users%2bunsubscr...@googlegroups.com>.
>> To post to this group, send email to django-users@googlegroups.com
>> <mailto:django-users@googlegroups.com>.
>> Visit this group at https://groups.google.com/group/django-users
>> <https://groups.google.com/group/django-users>.
>> To view this discussion on the web visit
>> https://groups.google.com/d/msgid/django-users/9a2b1e04-5f45
>> -ecd5-6d43-17f247a6836c%40stacktrace.dk
>> <https://groups.google.com/d/msgid/django-users/9a2b1e04-5f4
>> 5-ecd5-6d43-17f247a6836c%40stacktrace.dk>.
>> For more options, visit https://groups.google.com/d/optout
>> <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 > django-users+unsubscr...@googlegroups.com>.
>> To post to this group, send email to django-users@googlegroups.com
>> <mailto: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/ms
>> gid/django-users/CAPkbFbYeTZU6G0rtcpQ9Cgm6qf--cD-
>> JfhO4dwNYHD-eUjr_fw%40mail.gmail.com <https://groups.google.com/d/m
>> sgid/django-users/CAPkbFbYeTZU6G0rtcpQ9Cgm6qf--cD-
>> JfhO4dwNYHD-eUjr_fw%40mail.gmail.com?utm_medium=email_source=footer>.
>> 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/ms
> gid/django-users/429e7c72-256a-23b7-762d-4adb5a6c8d69%40dewhirst.com.au.
> 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/CAPkbFbapP897y%2BG_rOUQozTY95PvrPvRF4%3D%3D08yOPiM5GZqmGw%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: Needs help

2018-07-12 Thread Umar Kambala
Kasper thanks for your brotherly advice, please I will be glad next time u
add me a link. But I came across another error, when I run python manage.py
runserver everything work find but when I enter 127.0.0.1 I gets "no
internet connection" do I hv to be connected wit internet before I can
access de local server?
On Jul 9, 2018 11:57 AM, "Kasper Laudrup"  wrote:

> Hi Umar.
>
> On 07/09/2018 01:52 PM, Umar Kambala wrote:
>
>>
>> This is the error
>>
>> url(r'^$', views.home, name='home')
>> attributeError: module 'boards.views' has no attribute 'home'
>>
>>
> Do you know what a Python module is and what an attribute on a module
> means? Then the answer is obvious.
>
> Try to read up on that.
>
> Kind regards,
>
> Kasper Laudrup
>
> --
> 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/ms
> gid/django-users/9a2b1e04-5f45-ecd5-6d43-17f247a6836c%40stacktrace.dk.
> 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/CAPkbFbYeTZU6G0rtcpQ9Cgm6qf--cD-JfhO4dwNYHD-eUjr_fw%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: Needs help

2018-07-09 Thread Umar Kambala
Thanks
On Jul 9, 2018 11:57 AM, "Kasper Laudrup"  wrote:

> Hi Umar.
>
> On 07/09/2018 01:52 PM, Umar Kambala wrote:
>
>>
>> This is the error
>>
>> url(r'^$', views.home, name='home')
>> attributeError: module 'boards.views' has no attribute 'home'
>>
>>
> Do you know what a Python module is and what an attribute on a module
> means? Then the answer is obvious.
>
> Try to read up on that.
>
> Kind regards,
>
> Kasper Laudrup
>
> --
> 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/ms
> gid/django-users/9a2b1e04-5f45-ecd5-6d43-17f247a6836c%40stacktrace.dk.
> 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/CAPkbFbbDEM%3DPCTedKB2t3D67LtmAk5KRN6MoaU%2BCxGNKHaAYyQ%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Needs help

2018-07-09 Thread Umar Kambala
Am lost as to what to do, I try troubleshooting but couldn't fine de
answer... This are my codes

from django.contrib.auth.models import User from django.shortcuts import
render, redirect, get_object_or_404 from .models import Board, Topic, Post
def new_topic(request, pk): board = get_object_or_404(Board, pk=pk) if
request.method == 'POST': subject = request.POST['subject'] message =
request.POST['message'] user = User.objects.first() # TODO: get the
currently logged in user topic = Topic.objects.create( subject=subject,
board=board, starter=user ) post = Post.objects.create( message=message,
topic=topic, created_by=user ) return redirect('board_topics', pk=board.pk)
# TODO: redirect to the created topic page return render(request,
'new_topic.html', {'board': board})

This is the error

url(r'^$', views.home, name='home')
attributeError: module 'boards.views' has no attribute 'home'

-- 
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/CAPkbFbbVEaAZ9m3E9c6AW2zGSeAo2Mpfut_vMuk%3DA5Z2%3DCBVLQ%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: Help

2018-07-08 Thread Umar Kambala
Thank Roger
On Jul 8, 2018 5:13 PM, "Roger Gammans"  wrote:

> Umar,
>
> IIRC - (and it's been a while since I used windows) - Windows maintains a
> global flag for internet connectivity.
>
> Unfortunately if windows decides it's not connected , bad many apps such
> as Internet Explorer, Edge etc, refuse to attempt to make any TCP
> connections even if they are to localhost (127.0.0.1). A quick google
> suggests that your AV or firewall could also cause this.
>
> I hope this gives you a few places to look.
>
> On Sun, 2018-07-08 at 09:57 -0700, Umar Kambala wrote:
>
> Am being using de django server which is 127.0.0.1 and never had any
> problem till today.
> Thanks
> On Jul 8, 2018 4:51 PM, "Jason"  wrote:
>
> the error states the issue: your computer is not connected to the internet.
>
> https://docs.djangoproject.com/en/2.0/intro/tutorial01/#the-
> development-server
>
>
> --
> 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/153107.25821.9.camel%40gammascience.co.uk
> <https://groups.google.com/d/msgid/django-users/153107.25821.9.camel%40gammascience.co.uk?utm_medium=email_source=footer>
> .
> 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/CAPkbFbZ6-cZ6NsMZyjD_E_%2BBot-bt%3DtkqnQA20pQsdnYz_cUZg%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: Help

2018-07-08 Thread Umar Kambala
Am being using de django server which is 127.0.0.1 and never had any
problem till today.
Thanks
On Jul 8, 2018 4:51 PM, "Jason"  wrote:

the error states the issue: your computer is not connected to the internet.

https://docs.djangoproject.com/en/2.0/intro/tutorial01/#
the-development-server


-- 
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/325da760-20bb-44d2-8a81-966d0ce43b0c%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/CAPkbFbYABJ9o8AKqk7U7cg3fLTv%3DUg24f4VRHnVCsZj7tMS-0Q%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: Help

2018-07-08 Thread Umar Kambala
Waaw thanks for that brotherly advice given. Am really really grateful.
Will try to do just that. Thanks once again.
Plz another problem is that when I run python manage.py runserver
everything works find but when I opens my browser I gets "no internet
connection" what might be de problem? Thanks
On Jul 8, 2018 4:21 PM, "Kasper Laudrup"  wrote:

> Hi Umar,
>
> On 2018-07-08 13:43, Umar Kambala wrote:
>
>>
>> Please when I run python manage.py test I gets
>> IndentationError : unident does not match any outer indentation level.
>>
>>
> Python uses indentation for scoping. This is, really, really basic Python
> knowledge.
>
> Looking at the questions you post here, I really suggest you pick up a
> book or find an online tutorial on Python, since you seem to be missing a
> lot of very basic stuff.
>
> Take some time (it doesn't have to take that long, especially if you have
> previous experience in other languages) to learn the basics of the Python
> language, then you'll have a much more pleasant experience with Django.
>
> I don't mean to sound condescending, I really mean it in the most friendly
> helpful way.
>
> We've all been beginners (and people who claim to be experts are most
> often not) and there's absolutely nothing wrong in that, but it sounds like
> you're not really interested in understanding *why* you are getting the
> errors you are getting and just look for an easy answer. You'll never learn
> to program in Python, Django or anything else that way.
>
> I'm deeply sorry if I've gotten the wrong impression, I am really trying
> to be helpful.
>
> Best of luck and kind regards,
>
> Kasper Laudrup
>
> --
> 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/ms
> gid/django-users/dfea6e65-cd35-062e-14b0-8abdd210f4a8%40stacktrace.dk.
> 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/CAPkbFbanysUVw8xQwG%2Bdj1Xbh86wWGqB5yMty24XkARHXJOygg%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Help

2018-07-08 Thread Umar Kambala
class HomeTests(TestCase): def setUp(self): self.board =
Board.objects.create(name='Django', description='Django board.') url =
reverse('home') self.response = self.client.get(url) def
test_home_view_status_code(self):
self.assertEquals(self.response.status_code, 200) def
test_home_url_resolves_home_view(self): view = resolve('/')
self.assertEquals(view.func, home) def
test_home_view_contains_link_to_topics_page(self): board_topics_url =
reverse('board_topics', kwargs={'pk': self.board.pk})
self.assertContains(self.response, 'href="{0}"'.format(board_topics_url))

Please when I run python manage.py test I gets
IndentationError : unident does not match any outer indentation level.

-- 
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/CAPkbFbZDz7hUvvm5Thut5sq5uAwZFSmG3zZE%3D_b3x3Hm%2BHYAUQ%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: wagtail of django view for blog?

2018-07-06 Thread Umar Kambala
Mr Tom thanks very much. It has helped me alot
On Jul 6, 2018 1:27 PM, "TimT Vogt"  wrote:

> Try this
>
> https://www.valentinog.com/blog/django-missing-argument-on-delete/
>
> Verstuurd vanaf mijn iPhone
>
> Op 6 jul. 2018 om 14:55 heeft Umar Kambala  het
> volgende geschreven:
>
> mr Tim can u help?
> i have this codes but gets error
>
> from django.db import models
> from django.contrib.auth.models import User
>
>
> class Board(models.Model):
> name = models.CharField(max_length=30, unique=True)
> description = models.CharField(max_length=100)
>
>
> class Topic(models.Model):
> subject = models.CharField(max_length=255)
> last_updated = models.DateTimeField(auto_now_add=True)
> board = models.ForeignKey(Board, related_name='topics')
> starter = models.ForeignKey(User, related_name='topics')
> on_delete = models.PROTECT
>
>
> class Post(models.Model):
> message = models.TextField(max_length=4000)
> topic = models.ForeignKey(Topic, related_name='posts')
> created_at = models.DateTimeField(auto_now_add=True)
> updated_at = models.DateTimeField(null=True)
> created_by = models.ForeignKey(User, related_name='posts')
> updated_by = models.ForeignKey(User, null=True, related_name='+')
> on_delete = models.PROTECT
>
> this is the error message
>
>  File "C:\Users\Admin\AppData\Local\Programs\Python\Python36-32\
> lib\site-packages\django\core\management\__init__.py", line 371, in
> execute_from_command_line
> utility.execute()
>   File "C:\Users\Admin\AppData\Local\Programs\Python\Python36-32\
> lib\site-packages\django\core\management\__init__.py", line 347, in
> execute
> django.setup()
>   File "C:\Users\Admin\AppData\Local\Programs\Python\Python36-32\
> lib\site-packages\django\__init__.py", line 24, in setup
> apps.populate(settings.INSTALLED_APPS)
>   File "C:\Users\Admin\AppData\Local\Programs\Python\Python36-32\
> lib\site-packages\django\apps\registry.py", line 112, in populate
> app_config.import_models()
>   File "C:\Users\Admin\AppData\Local\Programs\Python\Python36-32\
> lib\site-packages\django\apps\config.py", line 198, in import_models
> self.models_module = import_module(models_module_name)
>   File 
> "C:\Users\Admin\AppData\Local\Programs\Python\Python36-32\lib\importlib\__init__.py",
> line 126, in import_module
> return _bootstrap._gcd_import(name[level:], package, level)
>   File "", line 994, in _gcd_import
>   File "", line 971, in _find_and_load
>   File "", line 955, in
> _find_and_load_unlocked
>   File "", line 665, in _load_unlocked
>   File "", line 678, in exec_module
>   File "", line 219, in
> _call_with_frames_removed
>   File "C:\Users\Admin\Desktop\Django Web\myproject\boards\models.py",
> line 10, in 
> class Topic(models.Model):
>   File "C:\Users\Admin\Desktop\Django Web\myproject\boards\models.py",
> line 13, in Topic
> board = models.ForeignKey(Board, related_name='topics')
> TypeError: __init__() missing 1 required positional argument: 'on_delete'
>
> On Thu, Jul 5, 2018 at 12:40 PM, Tim Vogt  wrote:
>
>> For a blog page with user friendly ux
>>
>> why choose one over another?
>>
>> Django of django Wagtail?
>>
>> What make the one better than the other?
>>
>> thanx!
>>
>> Tim
>> t...@officerebels.nl
>>
>> --
>> 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/ms
>> gid/django-users/01ad0564-d0b4-40ea-9287-337878c2fe13%40googlegroups.com
>> <https://groups.google.com/d/msgid/django-users/01ad0564-d0b4-40ea-9287-337878c2fe13%40googlegroups.com?utm_medium=email_source=footer>
>> .
>> 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-us

Re: wagtail of django view for blog?

2018-07-06 Thread Umar Kambala
mr Tim can u help?
i have this codes but gets error

from django.db import models
from django.contrib.auth.models import User


class Board(models.Model):
name = models.CharField(max_length=30, unique=True)
description = models.CharField(max_length=100)


class Topic(models.Model):
subject = models.CharField(max_length=255)
last_updated = models.DateTimeField(auto_now_add=True)
board = models.ForeignKey(Board, related_name='topics')
starter = models.ForeignKey(User, related_name='topics')
on_delete = models.PROTECT


class Post(models.Model):
message = models.TextField(max_length=4000)
topic = models.ForeignKey(Topic, related_name='posts')
created_at = models.DateTimeField(auto_now_add=True)
updated_at = models.DateTimeField(null=True)
created_by = models.ForeignKey(User, related_name='posts')
updated_by = models.ForeignKey(User, null=True, related_name='+')
on_delete = models.PROTECT

this is the error message

 File
"C:\Users\Admin\AppData\Local\Programs\Python\Python36-32\lib\site-packages\django\core\management\__init__.py",
line 371, in execute_from_command_line
utility.execute()
  File
"C:\Users\Admin\AppData\Local\Programs\Python\Python36-32\lib\site-packages\django\core\management\__init__.py",
line 347, in execute
django.setup()
  File
"C:\Users\Admin\AppData\Local\Programs\Python\Python36-32\lib\site-packages\django\__init__.py",
line 24, in setup
apps.populate(settings.INSTALLED_APPS)
  File
"C:\Users\Admin\AppData\Local\Programs\Python\Python36-32\lib\site-packages\django\apps\registry.py",
line 112, in populate
app_config.import_models()
  File
"C:\Users\Admin\AppData\Local\Programs\Python\Python36-32\lib\site-packages\django\apps\config.py",
line 198, in import_models
self.models_module = import_module(models_module_name)
  File
"C:\Users\Admin\AppData\Local\Programs\Python\Python36-32\lib\importlib\__init__.py",
line 126, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
  File "", line 994, in _gcd_import
  File "", line 971, in _find_and_load
  File "", line 955, in _find_and_load_unlocked
  File "", line 665, in _load_unlocked
  File "", line 678, in exec_module
  File "", line 219, in
_call_with_frames_removed
  File "C:\Users\Admin\Desktop\Django Web\myproject\boards\models.py", line
10, in 
class Topic(models.Model):
  File "C:\Users\Admin\Desktop\Django Web\myproject\boards\models.py", line
13, in Topic
board = models.ForeignKey(Board, related_name='topics')
TypeError: __init__() missing 1 required positional argument: 'on_delete'

On Thu, Jul 5, 2018 at 12:40 PM, Tim Vogt  wrote:

> For a blog page with user friendly ux
>
> why choose one over another?
>
> Django of django Wagtail?
>
> What make the one better than the other?
>
> thanx!
>
> Tim
> t...@officerebels.nl
>
> --
> 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/01ad0564-d0b4-40ea-9287-337878c2fe13%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/CAPkbFbaR%2BVjUJN1V_Nfw%2B%3DdVTewcKsWYzjYRT%2B_yc0X8_b83CQ%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: help

2018-07-06 Thread Umar Kambala
And I still gets de same error
On Jul 6, 2018 12:42 PM, "Umar Kambala"  wrote:

> Please this wat I now hv am I correct?
>
> On_delete = models.PROTECT
> On Jul 6, 2018 11:28 AM, "Gerald Brown"  wrote:
>
> In any field that is a ForeignKey you now have to add "on_delete = ???"
> (there are a number of options to replace the ???).
>
> See the last line of the error message as it shows you the file and line
> number of where the error is.
>
> On Friday, 06 July, 2018 07:13 PM, Umar Kambala wrote:
>
> please this the error i got when i run python manage.py makemigrations
>
>  File "C:\Users\Admin\AppData\Local\Programs\Python\Python36-32\li
> b\site-packages\django\core\management\__init__.py", line 371, in
> execute_from_command_line
> utility.execute()
>   File "C:\Users\Admin\AppData\Local\Programs\Python\Python36-32\li
> b\site-packages\django\core\management\__init__.py", line 347, in execute
> django.setup()
>   File "C:\Users\Admin\AppData\Local\Programs\Python\Python36-32\li
> b\site-packages\django\__init__.py", line 24, in setup
> apps.populate(settings.INSTALLED_APPS)
>   File "C:\Users\Admin\AppData\Local\Programs\Python\Python36-32\li
> b\site-packages\django\apps\registry.py", line 112, in populate
> app_config.import_models()
>   File "C:\Users\Admin\AppData\Local\Programs\Python\Python36-32\li
> b\site-packages\django\apps\config.py", line 198, in import_models
> self.models_module = import_module(models_module_name)
>   File 
> "C:\Users\Admin\AppData\Local\Programs\Python\Python36-32\lib\importlib\__init__.py",
> line 126, in import_module
> return _bootstrap._gcd_import(name[level:], package, level)
>   File "", line 994, in _gcd_import
>   File "", line 971, in _find_and_load
>   File "", line 955, in
> _find_and_load_unlocked
>   File "", line 665, in _load_unlocked
>   File "", line 678, in exec_module
>   File "", line 219, in
> _call_with_frames_removed
>   File "C:\Users\Admin\Desktop\Django Web\myproject\boards\models.py",
> line 10, in 
> class Topic (models.Model):
>   File "C:\Users\Admin\Desktop\Django Web\myproject\boards\models.py",
> line 13, in Topic
> board = models.ForeignKey(Board, related_name='topics')
> TypeError: __init__() missing 1 required positional argument: 'on_delete'
>
>
> this are the codes
>
> from django.db import modelsfrom django.contrib.auth.models import User
>
> class Board(models.Model):
> name = models.CharField(max_length=30, unique=True)
> description = models.CharField(max_length=100)
>
> class Topic (models.Model):
> subject = models.CharField(max_length=255)
> last_updated = models.DateTimeField()
> board = models.ForeignKey(Board, related_name='topics')
> starter = models.ForeignKey(User, related_name='topics')
>
> class Post(models.Model):
> message = models.TextField(max_length=4000)
> topic = models.ForeignKey(Topic, related_name='posts')
> created_at = models.DateTimeField(auto_now_add=True)
> updated_at = models.DateTimeField(null=True)
> created_by = models.ForeignKey(User, related_name='posts')
> updated_by = models.ForeignKey(User, null=True, related_name='+')
>
>
> --
> 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/ms
> gid/django-users/CAPkbFbaHq8Mgz_ZLnmC1EWQmT7FodSbEaWnd7buTcR
> R85aYTSg%40mail.gmail.com
> <https://groups.google.com/d/msgid/django-users/CAPkbFbaHq8Mgz_ZLnmC1EWQmT7FodSbEaWnd7buTcRR85aYTSg%40mail.gmail.com?utm_medium=email_source=footer>
> .
> 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/ms
> gid/django-users/ec3324f6-1cdf-c892-754c-094a6823ada2%40gmail.com
> <https://groups.google.com/d/msgid/django-users/

Re: help

2018-07-06 Thread Umar Kambala
Please this wat I now hv am I correct?

On_delete = models.PROTECT
On Jul 6, 2018 11:28 AM, "Gerald Brown"  wrote:

In any field that is a ForeignKey you now have to add "on_delete = ???"
(there are a number of options to replace the ???).

See the last line of the error message as it shows you the file and line
number of where the error is.

On Friday, 06 July, 2018 07:13 PM, Umar Kambala wrote:

please this the error i got when i run python manage.py makemigrations

 File "C:\Users\Admin\AppData\Local\Programs\Python\Python36-32\
lib\site-packages\django\core\management\__init__.py", line 371, in
execute_from_command_line
utility.execute()
  File "C:\Users\Admin\AppData\Local\Programs\Python\Python36-32\
lib\site-packages\django\core\management\__init__.py", line 347, in execute
django.setup()
  File "C:\Users\Admin\AppData\Local\Programs\Python\Python36-32\
lib\site-packages\django\__init__.py", line 24, in setup
apps.populate(settings.INSTALLED_APPS)
  File "C:\Users\Admin\AppData\Local\Programs\Python\Python36-32\
lib\site-packages\django\apps\registry.py", line 112, in populate
app_config.import_models()
  File "C:\Users\Admin\AppData\Local\Programs\Python\Python36-32\
lib\site-packages\django\apps\config.py", line 198, in import_models
self.models_module = import_module(models_module_name)
  File 
"C:\Users\Admin\AppData\Local\Programs\Python\Python36-32\lib\importlib\__init__.py",
line 126, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
  File "", line 994, in _gcd_import
  File "", line 971, in _find_and_load
  File "", line 955, in _find_and_load_unlocked
  File "", line 665, in _load_unlocked
  File "", line 678, in exec_module
  File "", line 219, in
_call_with_frames_removed
  File "C:\Users\Admin\Desktop\Django Web\myproject\boards\models.py", line
10, in 
class Topic (models.Model):
  File "C:\Users\Admin\Desktop\Django Web\myproject\boards\models.py", line
13, in Topic
board = models.ForeignKey(Board, related_name='topics')
TypeError: __init__() missing 1 required positional argument: 'on_delete'


this are the codes

from django.db import modelsfrom django.contrib.auth.models import User

class Board(models.Model):
name = models.CharField(max_length=30, unique=True)
description = models.CharField(max_length=100)

class Topic (models.Model):
subject = models.CharField(max_length=255)
last_updated = models.DateTimeField()
board = models.ForeignKey(Board, related_name='topics')
starter = models.ForeignKey(User, related_name='topics')

class Post(models.Model):
message = models.TextField(max_length=4000)
topic = models.ForeignKey(Topic, related_name='posts')
created_at = models.DateTimeField(auto_now_add=True)
updated_at = models.DateTimeField(null=True)
created_by = models.ForeignKey(User, related_name='posts')
updated_by = models.ForeignKey(User, null=True, related_name='+')


-- 
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/CAPkbFbaHq8Mgz_ZLnmC1EWQmT7FodSbEaWnd7buTcRR8
5aYTSg%40mail.gmail.com
<https://groups.google.com/d/msgid/django-users/CAPkbFbaHq8Mgz_ZLnmC1EWQmT7FodSbEaWnd7buTcRR85aYTSg%40mail.gmail.com?utm_medium=email_source=footer>
.
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/ec3324f6-1cdf-c892-754c-094a6823ada2%40gmail.com
<https://groups.google.com/d/msgid/django-users/ec3324f6-1cdf-c892-754c-094a6823ada2%40gmail.com?utm_medium=email_source=footer>
.
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/CAPkbFbbWKD6%3DmkpcKUKBXjiYChTgko0RV%3D%3D2FgR5sg1TKUx5GQ%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: help

2018-07-06 Thread Umar Kambala
Please sorry am new to django, if u could further explain it to me. Thanks
On Jul 6, 2018 11:39 AM, "Anirudh choudhary" 
wrote:

> Add on_delete = models.CASCADE
>  EVERY WHERE YOU ARE USING FOREIGN KEY
>
> On Fri, 6 Jul 2018, 4:43 p.m. Umar Kambala,  wrote:
>
>> please this the error i got when i run python manage.py makemigrations
>>
>>  File "C:\Users\Admin\AppData\Local\Programs\Python\Python36-32\
>> lib\site-packages\django\core\management\__init__.py", line 371, in
>> execute_from_command_line
>> utility.execute()
>>   File "C:\Users\Admin\AppData\Local\Programs\Python\Python36-32\
>> lib\site-packages\django\core\management\__init__.py", line 347, in
>> execute
>> django.setup()
>>   File "C:\Users\Admin\AppData\Local\Programs\Python\Python36-32\
>> lib\site-packages\django\__init__.py", line 24, in setup
>> apps.populate(settings.INSTALLED_APPS)
>>   File "C:\Users\Admin\AppData\Local\Programs\Python\Python36-32\
>> lib\site-packages\django\apps\registry.py", line 112, in populate
>> app_config.import_models()
>>   File "C:\Users\Admin\AppData\Local\Programs\Python\Python36-32\
>> lib\site-packages\django\apps\config.py", line 198, in import_models
>> self.models_module = import_module(models_module_name)
>>   File 
>> "C:\Users\Admin\AppData\Local\Programs\Python\Python36-32\lib\importlib\__init__.py",
>> line 126, in import_module
>> return _bootstrap._gcd_import(name[level:], package, level)
>>   File "", line 994, in _gcd_import
>>   File "", line 971, in _find_and_load
>>   File "", line 955, in
>> _find_and_load_unlocked
>>   File "", line 665, in _load_unlocked
>>   File "", line 678, in exec_module
>>   File "", line 219, in
>> _call_with_frames_removed
>>   File "C:\Users\Admin\Desktop\Django Web\myproject\boards\models.py",
>> line 10, in 
>> class Topic (models.Model):
>>   File "C:\Users\Admin\Desktop\Django Web\myproject\boards\models.py",
>> line 13, in Topic
>> board = models.ForeignKey(Board, related_name='topics')
>> TypeError: __init__() missing 1 required positional argument: 'on_delete'
>>
>>
>> this are the codes
>>
>> from django.db import models
>> from django.contrib.auth.models import User
>>
>>
>> class Board(models.Model):
>> name = models.CharField(max_length=30, unique=True)
>> description = models.CharField(max_length=100)
>>
>>
>> class Topic (models.Model):
>> subject = models.CharField(max_length=255)
>> last_updated = models.DateTimeField()
>> board = models.ForeignKey(Board, related_name='topics')
>> starter = models.ForeignKey(User, related_name='topics')
>>
>>
>> class Post(models.Model):
>> message = models.TextField(max_length=4000)
>> topic = models.ForeignKey(Topic, related_name='posts')
>> created_at = models.DateTimeField(auto_now_add=True)
>> updated_at = models.DateTimeField(null=True)
>> created_by = models.ForeignKey(User, related_name='posts')
>> updated_by = models.ForeignKey(User, null=True, related_name='+')
>>
>>
>> --
>> 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/CAPkbFbaHq8Mgz_ZLnmC1EWQmT7FodSbEaWnd7buTcRR8
>> 5aYTSg%40mail.gmail.com
>> <https://groups.google.com/d/msgid/django-users/CAPkbFbaHq8Mgz_ZLnmC1EWQmT7FodSbEaWnd7buTcRR85aYTSg%40mail.gmail.com?utm_medium=email_source=footer>
>> .
>> 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/CAL8_rkHSc6Y64G_vNqmyFmTj_Nw0%
> 2BROKrvnED

Re: help

2018-07-06 Thread Umar Kambala
Please am sorry, am new to django I hvnt understood what u mean. If u could
further explain it to me. Thanks
On Jul 6, 2018 11:42 AM, "rahul sawra"  wrote:

> You can Also Use on_delete= models.PROTECT whereever You use ForeignKey!
>
> On Fri, 6 Jul 2018 at 5:09 PM, Anirudh choudhary <
> anirudhchoudary...@gmail.com> wrote:
>
>> Add on_delete = models.CASCADE
>>  EVERY WHERE YOU ARE USING FOREIGN KEY
>>
>> On Fri, 6 Jul 2018, 4:43 p.m. Umar Kambala, 
>> wrote:
>>
>>> please this the error i got when i run python manage.py makemigrations
>>>
>>>  File "C:\Users\Admin\AppData\Local\Programs\Python\Python36-32\
>>> lib\site-packages\django\core\management\__init__.py", line 371, in
>>> execute_from_command_line
>>> utility.execute()
>>>   File "C:\Users\Admin\AppData\Local\Programs\Python\Python36-32\
>>> lib\site-packages\django\core\management\__init__.py", line 347, in
>>> execute
>>> django.setup()
>>>   File "C:\Users\Admin\AppData\Local\Programs\Python\Python36-32\
>>> lib\site-packages\django\__init__.py", line 24, in setup
>>> apps.populate(settings.INSTALLED_APPS)
>>>   File "C:\Users\Admin\AppData\Local\Programs\Python\Python36-32\
>>> lib\site-packages\django\apps\registry.py", line 112, in populate
>>> app_config.import_models()
>>>   File "C:\Users\Admin\AppData\Local\Programs\Python\Python36-32\
>>> lib\site-packages\django\apps\config.py", line 198, in import_models
>>> self.models_module = import_module(models_module_name)
>>>   File 
>>> "C:\Users\Admin\AppData\Local\Programs\Python\Python36-32\lib\importlib\__init__.py",
>>> line 126, in import_module
>>> return _bootstrap._gcd_import(name[level:], package, level)
>>>   File "", line 994, in _gcd_import
>>>   File "", line 971, in _find_and_load
>>>   File "", line 955, in
>>> _find_and_load_unlocked
>>>   File "", line 665, in _load_unlocked
>>>   File "", line 678, in
>>> exec_module
>>>   File "", line 219, in
>>> _call_with_frames_removed
>>>   File "C:\Users\Admin\Desktop\Django Web\myproject\boards\models.py",
>>> line 10, in 
>>> class Topic (models.Model):
>>>   File "C:\Users\Admin\Desktop\Django Web\myproject\boards\models.py",
>>> line 13, in Topic
>>> board = models.ForeignKey(Board, related_name='topics')
>>> TypeError: __init__() missing 1 required positional argument: 'on_delete'
>>>
>>>
>>> this are the codes
>>>
>>> from django.db import models
>>> from django.contrib.auth.models import User
>>>
>>>
>>> class Board(models.Model):
>>> name = models.CharField(max_length=30, unique=True)
>>> description = models.CharField(max_length=100)
>>>
>>>
>>> class Topic (models.Model):
>>> subject = models.CharField(max_length=255)
>>> last_updated = models.DateTimeField()
>>> board = models.ForeignKey(Board, related_name='topics')
>>> starter = models.ForeignKey(User, related_name='topics')
>>>
>>>
>>> class Post(models.Model):
>>> message = models.TextField(max_length=4000)
>>> topic = models.ForeignKey(Topic, related_name='posts')
>>> created_at = models.DateTimeField(auto_now_add=True)
>>> updated_at = models.DateTimeField(null=True)
>>> created_by = models.ForeignKey(User, related_name='posts')
>>> updated_by = models.ForeignKey(User, null=True, related_name='+')
>>>
>>>
>>> --
>>> 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/CAPkbFbaHq8Mgz_ZLnmC1EWQmT7FodSbEaWnd7buTcRR8
>>> 5aYTSg%40mail.gmail.com
>>> <https://groups.google.com/d/msgid/django-users/CAPkbFbaHq8Mgz_ZLnmC1EWQmT7FodSbEaWnd7buTcRR85aYTSg%40mail.gmail.com?utm_medium=email_source=footer>
>>> .
>>> For more options, visit https://group

help

2018-07-06 Thread Umar Kambala
please this the error i got when i run python manage.py makemigrations

 File
"C:\Users\Admin\AppData\Local\Programs\Python\Python36-32\lib\site-packages\django\core\management\__init__.py",
line 371, in execute_from_command_line
utility.execute()
  File
"C:\Users\Admin\AppData\Local\Programs\Python\Python36-32\lib\site-packages\django\core\management\__init__.py",
line 347, in execute
django.setup()
  File
"C:\Users\Admin\AppData\Local\Programs\Python\Python36-32\lib\site-packages\django\__init__.py",
line 24, in setup
apps.populate(settings.INSTALLED_APPS)
  File
"C:\Users\Admin\AppData\Local\Programs\Python\Python36-32\lib\site-packages\django\apps\registry.py",
line 112, in populate
app_config.import_models()
  File
"C:\Users\Admin\AppData\Local\Programs\Python\Python36-32\lib\site-packages\django\apps\config.py",
line 198, in import_models
self.models_module = import_module(models_module_name)
  File
"C:\Users\Admin\AppData\Local\Programs\Python\Python36-32\lib\importlib\__init__.py",
line 126, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
  File "", line 994, in _gcd_import
  File "", line 971, in _find_and_load
  File "", line 955, in _find_and_load_unlocked
  File "", line 665, in _load_unlocked
  File "", line 678, in exec_module
  File "", line 219, in
_call_with_frames_removed
  File "C:\Users\Admin\Desktop\Django Web\myproject\boards\models.py", line
10, in 
class Topic (models.Model):
  File "C:\Users\Admin\Desktop\Django Web\myproject\boards\models.py", line
13, in Topic
board = models.ForeignKey(Board, related_name='topics')
TypeError: __init__() missing 1 required positional argument: 'on_delete'


this are the codes

from django.db import models
from django.contrib.auth.models import User


class Board(models.Model):
name = models.CharField(max_length=30, unique=True)
description = models.CharField(max_length=100)


class Topic (models.Model):
subject = models.CharField(max_length=255)
last_updated = models.DateTimeField()
board = models.ForeignKey(Board, related_name='topics')
starter = models.ForeignKey(User, related_name='topics')


class Post(models.Model):
message = models.TextField(max_length=4000)
topic = models.ForeignKey(Topic, related_name='posts')
created_at = models.DateTimeField(auto_now_add=True)
updated_at = models.DateTimeField(null=True)
created_by = models.ForeignKey(User, related_name='posts')
updated_by = models.ForeignKey(User, null=True, related_name='+')

-- 
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/CAPkbFbaHq8Mgz_ZLnmC1EWQmT7FodSbEaWnd7buTcRR85aYTSg%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: help

2018-07-05 Thread Umar Kambala
Thanks Mr Tim, I have reinstall new django and everything is working fine
now. Thanks for your time and patience am really grateful
On Jul 5, 2018 11:55 AM, "Tim Vogt (Tim Vogt)"  wrote:

> No problem.
> Just look inside the current folder where your command line is present.
> There is no manage.py
>
> So to get to the folder where the manage.py is you have to know in wich
> folder it is.
> And with the command line commando’s you can go there.
>
> cd.. is one folder higher
> cd project_name_folder  is one folder deeper
>
> Op 5 jul. 2018, om 13:49 heeft Umar Kambala  het
> volgende geschreven:
>
> Please am sorry am new to django, I don't really understood what u mean
> On Jul 5, 2018 11:42 AM, "Tim Vogt (Tim Vogt)"  wrote:
>
> do $ls and find the directory where the manage.py file is.
> cd.. to go one directory back
>
>
>
> Op 5 jul. 2018, om 13:25 heeft Umar Kambala  het
> volgende geschreven:
>
> thanks Mr Tim
> i have python 3.6 install on my computer, i try running  python manage.py
> migrate and this is what i got
>
> C:\Users\Admin\Desktop\Django web>python manage.py migrate
> python: can't open file 'manage.py': [Errno 2] No such file or directory
>
> On Thu, Jul 5, 2018 at 4:21 AM, Tim Vogt (Tim Vogt) 
> wrote:
>
>> perhaps run the project with python2 or
>> do python manage.py migrate.
>>
>>
>> Op 5 jul. 2018, om 13:18 heeft Umar Kambala  het
>> volgende geschreven:
>>
>> please this what i had after running my Django-admin startproject
>> myproject
>>
>>   File "c:\users\admin\appdata\local\programs\python\python36-32\li
>> b\site-packages\django\core\management\__init__.py", line 371, in
>> execute_from_command_line
>> utility.execute()
>>   File "c:\users\admin\appdata\local\programs\python\python36-32\li
>> b\site-packages\django\core\management\__init__.py", line 365, in execute
>> self.fetch_command(subcommand).run_from_argv(self.argv)
>>   File "c:\users\admin\appdata\local\programs\python\python36-32\li
>> b\site-packages\django\core\management\__init__.py", line 216, in
>> fetch_command
>> klass = load_command_class(app_name, subcommand)
>>   File "c:\users\admin\appdata\local\programs\python\python36-32\li
>> b\site-packages\django\core\management\__init__.py", line 36, in
>> load_command_class
>> module = import_module('%s.management.commands.%s' % (app_name,
>> name))
>>   File 
>> "c:\users\admin\appdata\local\programs\python\python36-32\lib\importlib\__init__.py",
>> line 126, in import_module
>> return _bootstrap._gcd_import(name[level:], package, level)
>>   File "", line 994, in _gcd_import
>>   File "", line 971, in _find_and_load
>>   File "", line 955, in
>> _find_and_load_unlocked
>>   File "", line 665, in _load_unlocked
>>   File "", line 678, in exec_module
>>   File "", line 219, in
>> _call_with_frames_removed
>>   File "c:\users\admin\appdata\local\programs\python\python36-32\li
>> b\site-packages\django\core\management\commands\startproject.py", line
>> 1, in 
>> from django.core.management.templates import TemplateCommand
>>   File "c:\users\admin\appdata\local\programs\python\python36-32\li
>> b\site-packages\django\core\management\templates.py", line 17, in
>> 
>> from django.template import Context, Engine
>> ModuleNotFoundError: No module named 'django.template'
>>
>> what should i do to debug this error please?
>>
>>
>> --
>> 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/ms
>> gid/django-users/CAPkbFbatt4e_SVMPbWEHk--tBKC8VJR6xYcAEjwEJR
>> jMFwT7Wg%40mail.gmail.com
>> <https://groups.google.com/d/msgid/django-users/CAPkbFbatt4e_SVMPbWEHk--tBKC8VJR6xYcAEjwEJRjMFwT7Wg%40mail.gmail.com?utm_medium=email_source=footer>
>> .
>> 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 receivi

Re: help

2018-07-05 Thread Umar Kambala
Please am sorry am new to django, I don't really understood what u mean
On Jul 5, 2018 11:42 AM, "Tim Vogt (Tim Vogt)"  wrote:

do $ls and find the directory where the manage.py file is.
cd.. to go one directory back



Op 5 jul. 2018, om 13:25 heeft Umar Kambala  het
volgende geschreven:

thanks Mr Tim
i have python 3.6 install on my computer, i try running  python manage.py
migrate and this is what i got

C:\Users\Admin\Desktop\Django web>python manage.py migrate
python: can't open file 'manage.py': [Errno 2] No such file or directory

On Thu, Jul 5, 2018 at 4:21 AM, Tim Vogt (Tim Vogt) 
wrote:

> perhaps run the project with python2 or
> do python manage.py migrate.
>
>
> Op 5 jul. 2018, om 13:18 heeft Umar Kambala  het
> volgende geschreven:
>
> please this what i had after running my Django-admin startproject myproject
>
>   File "c:\users\admin\appdata\local\programs\python\python36-32\li
> b\site-packages\django\core\management\__init__.py", line 371, in
> execute_from_command_line
> utility.execute()
>   File "c:\users\admin\appdata\local\programs\python\python36-32\li
> b\site-packages\django\core\management\__init__.py", line 365, in execute
> self.fetch_command(subcommand).run_from_argv(self.argv)
>   File "c:\users\admin\appdata\local\programs\python\python36-32\li
> b\site-packages\django\core\management\__init__.py", line 216, in
> fetch_command
> klass = load_command_class(app_name, subcommand)
>   File "c:\users\admin\appdata\local\programs\python\python36-32\li
> b\site-packages\django\core\management\__init__.py", line 36, in
> load_command_class
> module = import_module('%s.management.commands.%s' % (app_name, name))
>   File 
> "c:\users\admin\appdata\local\programs\python\python36-32\lib\importlib\__init__.py",
> line 126, in import_module
> return _bootstrap._gcd_import(name[level:], package, level)
>   File "", line 994, in _gcd_import
>   File "", line 971, in _find_and_load
>   File "", line 955, in
> _find_and_load_unlocked
>   File "", line 665, in _load_unlocked
>   File "", line 678, in exec_module
>   File "", line 219, in
> _call_with_frames_removed
>   File "c:\users\admin\appdata\local\programs\python\python36-32\li
> b\site-packages\django\core\management\commands\startproject.py", line 1,
> in 
> from django.core.management.templates import TemplateCommand
>   File "c:\users\admin\appdata\local\programs\python\python36-32\li
> b\site-packages\django\core\management\templates.py", line 17, in 
> from django.template import Context, Engine
> ModuleNotFoundError: No module named 'django.template'
>
> what should i do to debug this error please?
>
>
> --
> 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/ms
> gid/django-users/CAPkbFbatt4e_SVMPbWEHk--tBKC8VJR6xYcAEjwEJR
> jMFwT7Wg%40mail.gmail.com
> <https://groups.google.com/d/msgid/django-users/CAPkbFbatt4e_SVMPbWEHk--tBKC8VJR6xYcAEjwEJRjMFwT7Wg%40mail.gmail.com?utm_medium=email_source=footer>
> .
> 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/ms
> gid/django-users/C04E4BEF-E8FF-4EF0-936A-69F04E1DD061%40gmail.com
> <https://groups.google.com/d/msgid/django-users/C04E4BEF-E8FF-4EF0-936A-69F04E1DD061%40gmail.com?utm_medium=email_source=footer>
> .
> 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/djan

Re: help

2018-07-05 Thread Umar Kambala
please i wants to uninstall my django and install new one how do i do that?

On Thu, Jul 5, 2018 at 4:30 AM, Umar Kambala  wrote:

> The problem is in line 17 but I don't know how to go by it
>
> import cgi
> import mimetypes
> import os
> import posixpath
> import re
> import shutil
> import stat
> import tempfile
> from importlib import import_module
> from os import path
> from urllib.request import urlretrieve
>
> import django
> from django.conf import settings
> from django.core.management.base import BaseCommand, CommandError
> from django.core.management.utils import handle_extensions
> from django.template import Context, Engine
> from django.utils import archive
> from django.utils.version import get_docs_version
>
> _drive_re = re.compile('^([a-z]):', re.I)
> _url_drive_re = re.compile('^([a-z])[:|]', re.I)
>
> class TemplateCommand(BaseCommand):
> """
> Copy either a Django application layout template or a Django project
> layout template into the specified directory.
>
> :param style: A color style object (see django.core.management.color).
> :param app_or_project: The string 'app' or 'project'.
> :param name: The name of the application or project.
> :param directory: The directory to which the template should be copied.
> :param options: The additional variables passed to project or app
> templates
> """
> requires_system_checks = False
> # The supported URL schemes
> url_schemes = ['http', 'https', 'ftp']
> # Can't perform any active locale changes during this command, because
> # setting might not be available at all.
> leave_locale_alone = True
> # Rewrite the following suffixes when determining the target filename.
> rewrite_template_suffixes = (
> # Allow shipping invalid .py files without byte-compilation.
> ('.py-tpl', '.py'),
> )
>
> def add_arguments(self, parser):
> parser.add_argument('name', help='Name of the application or
> project.')
> parser.add_argument('directory', nargs='?', help='Optional
> destination directory')
> parser.add_argument('--template', help='The path or URL to load
> the template from.')
> parser.add_argument(
> '--extension', '-e', dest='extensions',
> action='append', default=['py'],
> help='The file extension(s) to render (default: "py"). '
>  'Separate multiple extensions with commas, or use '
>  '-e multiple times.'
> )
> parser.add_argument(
> '--name', '-n', dest='files',
> action='append', default=[],
> help='The file name(s) to render. Separate multiple file names
> '
>  'with commas, or use -n multiple times.'
> )
>
> def handle(self, app_or_project, name, target=None, **options):
> self.app_or_project = app_or_project
> self.paths_to_remove = []
> self.verbosity = options['verbosity']
>
> self.validate_name(name, app_or_project)
>
> # if some directory is given, make sure it's nicely expanded
> if target is None:
> top_dir = path.join(os.getcwd(), name)
> try:
> os.makedirs(top_dir)
> except FileExistsError:
> raise CommandError("'%s' already exists" % top_dir)
> except OSError as e:
> raise CommandError(e)
> else:
> top_dir = os.path.abspath(path.expanduser(target))
> if not os.path.exists(top_dir):
> raise CommandError("Destination directory '%s' does not "
>"exist, please create it first." %
> top_dir)
>
> extensions = tuple(handle_extensions(options['extensions']))
> extra_files = []
> for file in options['files']:
> extra_files.extend(map(lambda x: x.strip(), file.split(',')))
> if self.verbosity >= 2:
> self.stdout.write("Rendering %s template files with "
>   "extensions: %s\n" %
>   (app_or_project, ', '.join(extensions)))
> self.stdout.write("Rendering %s template files with "
>   "filenames: %s\n" %
>   (app_or_project, ', '.join(extra_files)))
>
> base_name = '%s_name' % app_or_project
> base_subdir = '%s_template' % app_or_project
> base_directory = '%s_directory' % app_or_project
> camel_case_nam

Re: help

2018-07-05 Thread Umar Kambala
ed.
try:
import_module(name)
except ImportError:
pass
else:
raise CommandError(
"'{name}' conflicts with the name of an existing Python "
"module and cannot be used as {an} {app} name. Please try "
"another name.".format(
name=name,
an=a_or_an,
app=app_or_project,
)
)

def download(self, url):
"""
Download the given URL and return the file name.
"""
def cleanup_url(url):
tmp = url.rstrip('/')
filename = tmp.split('/')[-1]
if url.endswith('/'):
display_url = tmp + '/'
else:
display_url = url
return filename, display_url

prefix = 'django_%s_template_' % self.app_or_project
tempdir = tempfile.mkdtemp(prefix=prefix, suffix='_download')
self.paths_to_remove.append(tempdir)
filename, display_url = cleanup_url(url)

if self.verbosity >= 2:
self.stdout.write("Downloading %s\n" % display_url)
try:
the_path, info = urlretrieve(url, path.join(tempdir, filename))
except IOError as e:
raise CommandError("couldn't download URL %s to %s: %s" %
   (url, filename, e))

used_name = the_path.split('/')[-1]

# Trying to get better name from response headers
content_disposition = info.get('content-disposition')
if content_disposition:
_, params = cgi.parse_header(content_disposition)
guessed_filename = params.get('filename') or used_name
else:
guessed_filename = used_name

# Falling back to content type guessing
ext = self.splitext(guessed_filename)[1]
content_type = info.get('content-type')
if not ext and content_type:
ext = mimetypes.guess_extension(content_type)
if ext:
guessed_filename += ext

# Move the temporary file to a filename that has better
# chances of being recognized by the archive utils
if used_name != guessed_filename:
guessed_path = path.join(tempdir, guessed_filename)
shutil.move(the_path, guessed_path)
return guessed_path

# Giving up
return the_path

def splitext(self, the_path):
"""
Like os.path.splitext, but takes off .tar, too
"""
base, ext = posixpath.splitext(the_path)
if base.lower().endswith('.tar'):
ext = base[-4:] + ext
base = base[:-4]
return base, ext

def extract(self, filename):
"""
Extract the given file to a temporarily and return
the path of the directory with the extracted content.
"""
prefix = 'django_%s_template_' % self.app_or_project
tempdir = tempfile.mkdtemp(prefix=prefix, suffix='_extract')
self.paths_to_remove.append(tempdir)
if self.verbosity >= 2:
self.stdout.write("Extracting %s\n" % filename)
try:
archive.extract(filename, tempdir)
return tempdir
except (archive.ArchiveException, IOError) as e:
raise CommandError("couldn't extract file %s to %s: %s" %
   (filename, tempdir, e))

def is_url(self, template):
"""Return True if the name looks like a URL."""
if ':' not in template:
return False
scheme = template.split(':', 1)[0].lower()
return scheme in self.url_schemes

def make_writeable(self, filename):
"""
Make sure that the file is writeable.
Useful if our source is read-only.
"""
if not os.access(filename, os.W_OK):
st = os.stat(filename)
new_permissions = stat.S_IMODE(st.st_mode) | stat.S_IWUSR
os.chmod(filename, new_permissions)

thanks Mr Tim
i have python 3.6 install on my computer, i try running  python manage.py
migrate and this is what i got

C:\Users\Admin\Desktop\Django web>python manage.py migrate
python: can't open file 'manage.py': [Errno 2] No such file or directory

On Thu, Jul 5, 2018 at 4:21 AM, Tim Vogt (Tim Vogt) 
wrote:

> perhaps run the project with python2 or
> do python manage.py migrate.
>
>
> Op 5 jul. 2018, om 13:18 heeft Umar Kambala  het
> volgende geschreven:
>
> please this what i had after running my Django-admin startproject myproject
>
>   File "c:\users\admin\appdata\local\programs\python\python36-32\li
> b\site-packages\django\core\management\__init__.py", line 371, 

Re: help

2018-07-05 Thread Umar Kambala
thanks Mr Tim
i have python 3.6 install on my computer, i try running  python manage.py
migrate and this is what i got

C:\Users\Admin\Desktop\Django web>python manage.py migrate
python: can't open file 'manage.py': [Errno 2] No such file or directory

On Thu, Jul 5, 2018 at 4:21 AM, Tim Vogt (Tim Vogt) 
wrote:

> perhaps run the project with python2 or
> do python manage.py migrate.
>
>
> Op 5 jul. 2018, om 13:18 heeft Umar Kambala  het
> volgende geschreven:
>
> please this what i had after running my Django-admin startproject myproject
>
>   File "c:\users\admin\appdata\local\programs\python\python36-32\
> lib\site-packages\django\core\management\__init__.py", line 371, in
> execute_from_command_line
> utility.execute()
>   File "c:\users\admin\appdata\local\programs\python\python36-32\
> lib\site-packages\django\core\management\__init__.py", line 365, in
> execute
> self.fetch_command(subcommand).run_from_argv(self.argv)
>   File "c:\users\admin\appdata\local\programs\python\python36-32\
> lib\site-packages\django\core\management\__init__.py", line 216, in
> fetch_command
> klass = load_command_class(app_name, subcommand)
>   File "c:\users\admin\appdata\local\programs\python\python36-32\
> lib\site-packages\django\core\management\__init__.py", line 36, in
> load_command_class
> module = import_module('%s.management.commands.%s' % (app_name, name))
>   File 
> "c:\users\admin\appdata\local\programs\python\python36-32\lib\importlib\__init__.py",
> line 126, in import_module
> return _bootstrap._gcd_import(name[level:], package, level)
>   File "", line 994, in _gcd_import
>   File "", line 971, in _find_and_load
>   File "", line 955, in
> _find_and_load_unlocked
>   File "", line 665, in _load_unlocked
>   File "", line 678, in exec_module
>   File "", line 219, in
> _call_with_frames_removed
>   File "c:\users\admin\appdata\local\programs\python\python36-32\
> lib\site-packages\django\core\management\commands\startproject.py", line
> 1, in 
> from django.core.management.templates import TemplateCommand
>   File "c:\users\admin\appdata\local\programs\python\python36-32\
> lib\site-packages\django\core\management\templates.py", line 17, in
> 
> from django.template import Context, Engine
> ModuleNotFoundError: No module named 'django.template'
>
> what should i do to debug this error please?
>
>
> --
> 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/CAPkbFbatt4e_SVMPbWEHk--tBKC8VJR6xYcAEjwEJRjMFwT7Wg%
> 40mail.gmail.com
> <https://groups.google.com/d/msgid/django-users/CAPkbFbatt4e_SVMPbWEHk--tBKC8VJR6xYcAEjwEJRjMFwT7Wg%40mail.gmail.com?utm_medium=email_source=footer>
> .
> 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/C04E4BEF-E8FF-4EF0-936A-69F04E1DD061%40gmail.com
> <https://groups.google.com/d/msgid/django-users/C04E4BEF-E8FF-4EF0-936A-69F04E1DD061%40gmail.com?utm_medium=email_source=footer>
> .
> 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/CAPkbFbbQ2ufECP6emgND2LD_fKKk%2BNHuF_KoyWP7c6EN-z3QZw%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


help

2018-07-05 Thread Umar Kambala
please this what i had after running my Django-admin startproject myproject

  File
"c:\users\admin\appdata\local\programs\python\python36-32\lib\site-packages\django\core\management\__init__.py",
line 371, in execute_from_command_line
utility.execute()
  File
"c:\users\admin\appdata\local\programs\python\python36-32\lib\site-packages\django\core\management\__init__.py",
line 365, in execute
self.fetch_command(subcommand).run_from_argv(self.argv)
  File
"c:\users\admin\appdata\local\programs\python\python36-32\lib\site-packages\django\core\management\__init__.py",
line 216, in fetch_command
klass = load_command_class(app_name, subcommand)
  File
"c:\users\admin\appdata\local\programs\python\python36-32\lib\site-packages\django\core\management\__init__.py",
line 36, in load_command_class
module = import_module('%s.management.commands.%s' % (app_name, name))
  File
"c:\users\admin\appdata\local\programs\python\python36-32\lib\importlib\__init__.py",
line 126, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
  File "", line 994, in _gcd_import
  File "", line 971, in _find_and_load
  File "", line 955, in _find_and_load_unlocked
  File "", line 665, in _load_unlocked
  File "", line 678, in exec_module
  File "", line 219, in
_call_with_frames_removed
  File
"c:\users\admin\appdata\local\programs\python\python36-32\lib\site-packages\django\core\management\commands\startproject.py",
line 1, in 
from django.core.management.templates import TemplateCommand
  File
"c:\users\admin\appdata\local\programs\python\python36-32\lib\site-packages\django\core\management\templates.py",
line 17, in 
from django.template import Context, Engine
ModuleNotFoundError: No module named 'django.template'

what should i do to debug this error please?

-- 
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/CAPkbFbatt4e_SVMPbWEHk--tBKC8VJR6xYcAEjwEJRjMFwT7Wg%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: Can't access my django runserver

2018-07-04 Thread Umar Kambala
Please I made the correction and am still getting the same error
On Jul 1, 2018 10:43 PM, "Jason"  wrote:

You're importing the wrong thing

*from django import templates*

should be

*from django import template*

no "s" on the latter

-- 
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/fd05d20a-c9d0-427d-a7ac-e7f385a56f49%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/CAPkbFbb1oDuUVk9Hmu0o6QHHTSvCkb7_yjF0gpM9QDpOaTfVzQ%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: Can't access my django runserver

2018-07-01 Thread Umar Kambala
Please am new to django n I don't know where to get the problem tree. Need
further clarifications
On Jul 1, 2018 10:18 PM, "Anirudh Jain"  wrote:

Can you please show your directory structure ? Just take the screenshot of
your project tree from code editor and that would be enough.

-- 
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/4648f889-3697-4a2a-a317-e31fd0214e59%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/CAPkbFbbATwP3H14qp1Vs%3Dprf9ReCYVYyU5vP9zt_QO_61sSwfA%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: Can't access my django runserver

2018-07-01 Thread Umar Kambala
go\db\models\aggregates.py",
line 5, in 
from django.db.models.expressions import Case, Func, Star, When
  File
"C:\Users\Admin\AppData\Local\Programs\Python\Python36-32\lib\site-packages\django\db\models\expressions.py",
line 7, in 
from django.db.models import fields
  File
"C:\Users\Admin\AppData\Local\Programs\Python\Python36-32\lib\site-packages\django\db\models\fields\__init__.py",
line 11, in 
from django import forms
  File
"C:\Users\Admin\AppData\Local\Programs\Python\Python36-32\lib\site-packages\django\forms\__init__.py",
line 6, in 
from django.forms.boundfield import *  # NOQA
  File
"C:\Users\Admin\AppData\Local\Programs\Python\Python36-32\lib\site-packages\django\forms\boundfield.py",
line 5, in 
from django.forms.widgets import Textarea, TextInput
  File
"C:\Users\Admin\AppData\Local\Programs\Python\Python36-32\lib\site-packages\django\forms\widgets.py",
line 13, in 
from django.templatetags.static import static
  File
"C:\Users\Admin\AppData\Local\Programs\Python\Python36-32\lib\site-packages\django\templatetags\static.py",
line 8, in 
register = template.Library()
NameError: name 'template' is not defined


this are the codes

from urllib.parse import quote, urljoin

from django import templates
from django.apps import apps
from django.utils.encoding import iri_to_uri
from django.utils.html import conditional_escape

register = template.Library()


class PrefixNode(template.Node):

def __repr__(self):
return "" % self.name

def __init__(self, varname=None, name=None):
if name is None:
raise template.TemplateSyntaxError(
"Prefix nodes must be given a name to return.")
self.varname = varname
self.name = name

@classmethod
def handle_token(cls, parser, token, name):
"""
Class method to parse prefix node and return a Node.
"""
# token.split_contents() isn't useful here because tags using
this method don't accept variable as arguments
tokens = token.contents.split()
if len(tokens) > 1 and tokens[1] != 'as':
raise template.TemplateSyntaxError(
"First argument in '%s' must be 'as'" % tokens[0])
if len(tokens) > 1:
varname = tokens[2]
else:
varname = None
return cls(varname, name)

@classmethod
def handle_simple(cls, name):
try:
from django.conf import settings
except ImportError:
prefix = ''
else:
prefix = iri_to_uri(getattr(settings, name, ''))
return prefix

def render(self, context):
prefix = self.handle_simple(self.name)
if self.varname is None:
return prefix
context[self.varname] = prefix
return ''


@register.tag
def get_static_prefix(parser, token):
"""
Populate a template variable with the static prefix,
``settings.STATIC_URL``.

Usage::

{% get_static_prefix [as varname] %}

Examples::

{% get_static_prefix %}
{% get_static_prefix as static_prefix %}
"""
return PrefixNode.handle_token(parser, token, "STATIC_URL")


@register.tag
def get_media_prefix(parser, token):
"""
Populate a template variable with the media prefix,
``settings.MEDIA_URL``.

Usage::

{% get_media_prefix [as varname] %}

Examples::

{% get_media_prefix %}
{% get_media_prefix as media_prefix %}
"""
return PrefixNode.handle_token(parser, token, "MEDIA_URL")


class StaticNode(template.Node):
def __init__(self, varname=None, path=None):
if path is None:
raise template.TemplateSyntaxError(
"Static template nodes must be given a path to return.")
self.path = path
self.varname = varname

def url(self, context):
path = self.path.resolve(context)
return self.handle_simple(path)

def render(self, context):
url = self.url(context)
if context.autoescape:
url = conditional_escape(url)
if self.varname is None:
return url
context[self.varname] = url
return ''

@classmethod
def handle_simple(cls, path):
if apps.is_installed('django.contrib.staticfiles'):
from django.contrib.staticfiles.storage import staticfiles_storage
return staticfiles_storage.url(path)
else:
return urljoin(PrefixNode.handle_simple("STATIC_URL"), quote(path))

@classmethod
def handle_token(cls, parser, token):
"""
Class method to parse prefix node and return a Node.
"""
bits = token.split_contents()

if len(bits)

Re: Can't access my django runserver

2018-07-01 Thread Umar Kambala
Am very grateful
On Jun 30, 2018 1:05 PM, "Anirudh Jain"  wrote:

> You forgot to put 'comma' after DIRS': [os.path.join(BASE_DIR,
> 'templates')] in templates.
>
> It should be DIRS': [os.path.join(BASE_DIR, 'templates')],
>
> On Sat 30 Jun, 2018, 15:52 Umar Kambala,  wrote:
>
>>
>> this are my codes...
>>
>> # SECURITY WARNING: don't run with debug turned on in production!
>> DEBUG = True
>>
>> ALLOWED_HOSTS = ['127.0.0.1', '.pythonanywhere.com']
>> ALLOWED_HOSTS = ['localhost', '.pythonanywhere.com']
>>
>>
>> # Application definition
>>
>> INSTALLED_APPS = [
>> 'polls.apps.PollsConfig',
>> 'django.contrib.admin',
>> 'django.contrib.auth',
>> 'django.contrib.contenttypes',
>> 'django.contrib.sessions',
>> 'django.contrib.messages',
>> 'django.contrib.staticfiles',
>> ]
>>
>> MIDDLEWARE = [
>> 'django.middleware.security.SecurityMiddleware',
>> 'django.contrib.sessions.middleware.SessionMiddleware',
>> 'django.middleware.common.CommonMiddleware',
>> 'django.middleware.csrf.CsrfViewMiddleware',
>> 'django.contrib.auth.middleware.AuthenticationMiddleware',
>> 'django.contrib.messages.middleware.MessageMiddleware',
>> 'django.middleware.clickjacking.XFrameOptionsMiddleware',
>> ]
>>
>> ROOT_URLCONF = 'mysite.urls'
>>
>> TEMPLATES = [
>> {
>> 'BACKEND': 'django.template.backends.django.DjangoTemplates',
>> 'DIRS': [os.path.join(BASE_DIR, 'templates')]
>> 'APP_DIRS': True,
>> 'OPTIONS': {
>> 'context_processors': [
>> 'django.template.context_processors.debug',
>> 'django.template.context_processors.request',
>> 'django.contrib.auth.context_processors.auth',
>> 'django.contrib.messages.context_processors.messages',
>> ],
>> },
>> },
>> ]
>>
>> WSGI_APPLICATION = 'mysite.wsgi.application'
>>
>>
>> # Database
>> # https://docs.djangoproject.com/en/2.0/ref/settings/#databases
>>
>> DATABASES = {
>> 'default': {
>> 'ENGINE': 'django.db.backends.sqlite3',
>> 'NAME': os.path.join(BASE_DIR, 'db.sqlite3'),
>> }
>> }
>>
>>
>> # Password validation
>> # https://docs.djangoproject.com/en/2.0/ref/settings/#auth-
>> password-validators
>>
>> AUTH_PASSWORD_VALIDATORS = [
>> {
>> 'NAME': 'django.contrib.auth.password_validation.
>> UserAttributeSimilarityValidator',
>> },
>> {
>> 'NAME': 'django.contrib.auth.password_validation.
>> MinimumLengthValidator',
>> },
>> {
>> 'NAME': 'django.contrib.auth.password_validation.
>> CommonPasswordValidator',
>> },
>> {
>> 'NAME': 'django.contrib.auth.password_validation.
>> NumericPasswordValidator',
>> },
>> ]
>>
>>
>> # Internationalization
>> # https://docs.djangoproject.com/en/2.0/topics/i18n/
>>
>> LANGUAGE_CODE = 'en-us'
>>
>> TIME_ZONE = 'GMT'
>>
>> USE_I18N = True
>>
>> USE_L10N = True
>>
>> USE_TZ = True
>>
>>
>> # Static files (CSS, JavaScript, Images)
>> # https://docs.djangoproject.com/en/2.0/howto/static-files/
>>
>> STATIC_URL = '/static/'
>> STATIC_ROOT = os.path.join(BASE_DIR, 'STATIC')
>> MASSAGE_STORAGE = 'django.contrib.message.storage.session.SessionStorage'
>>
>>
>> this what i get when i run python manage.py runserver
>> line 371, in execute_from_command_line
>> utility.execute()
>>   File "C:\Users\Admin\AppData\Local\Programs\Python\Python36-32\
>> lib\site-packages\django\core\management\__init__.py", line 317, in
>> execute
>> settings.INSTALLED_APPS
>>   File "C:\Users\Admin\AppData\Local\Programs\Python\Python36-32\
>> lib\site-packages\django\conf\__init__.py", line 56, in __getattr__
>> self._setup(name)
>>   File "C:\Users\Admin\AppData\Local\Programs\Python\Python36-32\
>> lib\site-packages\django\conf\__init__.py", line 43, in _setup
>> self._wrapped = Settings(settings_module)
>>   File "C:\Users\Admin\AppData\Local\Programs\Python\Python36-32\
>> lib\site-packages\django\conf\__init__.py", line 106, in __init__
>> mod = importlib.import_module(self.SETTINGS_MODULE)
>>   File 
>> "C:\Users\Admin\AppData\Local\Programs\Python\

Re: Can't access my django runserver

2018-07-01 Thread Umar Kambala
Am very grateful
On Jun 30, 2018 12:49 PM, "Jason"  wrote:

> you're missing a comma at the end of
>
>  'DIRS': [os.path.join(BASE_DIR, 'templates')]
>
> for future reference, if you want people to help you, give the information
> up front as well as context.  Your original posting showed minimal
> information, so there was nothing we could do until you posted the above.
>
> You should also be using a text editor like atom, sublime, vscode, etc
> with a graphical linter so you can see syntax errors like the above more
> easily.
>
> --
> 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/65a0ae6d-c957-4b65-b8f9-8c8ccffd58ca%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/CAPkbFbZp8x6-DTmCxYMEw9FFWUhJeVh0%3DBc93ULRDGAN_FB4%2BA%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: Can't access my django runserver

2018-07-01 Thread Umar Kambala
Am very grateful
On Jun 30, 2018 1:05 PM, "Glen D souza"  wrote:

> I think there is a ' , ' missing after 'DIRS' in Templates settings
>
> On Saturday, 30 June 2018, Umar Kambala  wrote:
>
>>
>> this are my codes...
>>
>> # SECURITY WARNING: don't run with debug turned on in production!
>> DEBUG = True
>>
>> ALLOWED_HOSTS = ['127.0.0.1', '.pythonanywhere.com']
>> ALLOWED_HOSTS = ['localhost', '.pythonanywhere.com']
>>
>>
>> # Application definition
>>
>> INSTALLED_APPS = [
>> 'polls.apps.PollsConfig',
>> 'django.contrib.admin',
>> 'django.contrib.auth',
>> 'django.contrib.contenttypes',
>> 'django.contrib.sessions',
>> 'django.contrib.messages',
>> 'django.contrib.staticfiles',
>> ]
>>
>> MIDDLEWARE = [
>> 'django.middleware.security.SecurityMiddleware',
>> 'django.contrib.sessions.middleware.SessionMiddleware',
>> 'django.middleware.common.CommonMiddleware',
>> 'django.middleware.csrf.CsrfViewMiddleware',
>> 'django.contrib.auth.middleware.AuthenticationMiddleware',
>> 'django.contrib.messages.middleware.MessageMiddleware',
>> 'django.middleware.clickjacking.XFrameOptionsMiddleware',
>> ]
>>
>> ROOT_URLCONF = 'mysite.urls'
>>
>> TEMPLATES = [
>> {
>> 'BACKEND': 'django.template.backends.django.DjangoTemplates',
>> 'DIRS': [os.path.join(BASE_DIR, 'templates')]
>> 'APP_DIRS': True,
>> 'OPTIONS': {
>> 'context_processors': [
>> 'django.template.context_processors.debug',
>> 'django.template.context_processors.request',
>> 'django.contrib.auth.context_processors.auth',
>> 'django.contrib.messages.context_processors.messages',
>> ],
>> },
>> },
>> ]
>>
>> WSGI_APPLICATION = 'mysite.wsgi.application'
>>
>>
>> # Database
>> # https://docs.djangoproject.com/en/2.0/ref/settings/#databases
>>
>> DATABASES = {
>> 'default': {
>> 'ENGINE': 'django.db.backends.sqlite3',
>> 'NAME': os.path.join(BASE_DIR, 'db.sqlite3'),
>> }
>> }
>>
>>
>> # Password validation
>> # https://docs.djangoproject.com/en/2.0/ref/settings/#auth-pas
>> sword-validators
>>
>> AUTH_PASSWORD_VALIDATORS = [
>> {
>> 'NAME': 'django.contrib.auth.password_
>> validation.UserAttributeSimilarityValidator',
>> },
>> {
>> 'NAME': 'django.contrib.auth.password_
>> validation.MinimumLengthValidator',
>> },
>> {
>> 'NAME': 'django.contrib.auth.password_
>> validation.CommonPasswordValidator',
>> },
>> {
>> 'NAME': 'django.contrib.auth.password_
>> validation.NumericPasswordValidator',
>> },
>> ]
>>
>>
>> # Internationalization
>> # https://docs.djangoproject.com/en/2.0/topics/i18n/
>>
>> LANGUAGE_CODE = 'en-us'
>>
>> TIME_ZONE = 'GMT'
>>
>> USE_I18N = True
>>
>> USE_L10N = True
>>
>> USE_TZ = True
>>
>>
>> # Static files (CSS, JavaScript, Images)
>> # https://docs.djangoproject.com/en/2.0/howto/static-files/
>>
>> STATIC_URL = '/static/'
>> STATIC_ROOT = os.path.join(BASE_DIR, 'STATIC')
>> MASSAGE_STORAGE = 'django.contrib.message.storage.session.SessionStorage'
>>
>>
>> this what i get when i run python manage.py runserver
>> line 371, in execute_from_command_line
>> utility.execute()
>>   File "C:\Users\Admin\AppData\Local\Programs\Python\Python36-32\li
>> b\site-packages\django\core\management\__init__.py", line 317, in execute
>> settings.INSTALLED_APPS
>>   File "C:\Users\Admin\AppData\Local\Programs\Python\Python36-32\li
>> b\site-packages\django\conf\__init__.py", line 56, in __getattr__
>> self._setup(name)
>>   File "C:\Users\Admin\AppData\Local\Programs\Python\Python36-32\li
>> b\site-packages\django\conf\__init__.py", line 43, in _setup
>> self._wrapped = Settings(settings_module)
>>   File "C:\Users\Admin\AppData\Local\Programs\Python\Python36-32\li
>> b\site-packages\django\conf\__init__.py", line 106, in __init__
>> mod = importlib.import_module(self.SETTINGS_MODULE)
>>   File 
>> "C:\Users\Admin\AppData\Local\Programs\Python\Python36-32\lib\importlib\__init__.py",
>> line 126, in import_module
>> return _bo

Re: Can't access my django runserver

2018-06-30 Thread Umar Kambala
this are my codes...

# SECURITY WARNING: don't run with debug turned on in production!
DEBUG = True

ALLOWED_HOSTS = ['127.0.0.1', '.pythonanywhere.com']
ALLOWED_HOSTS = ['localhost', '.pythonanywhere.com']


# Application definition

INSTALLED_APPS = [
'polls.apps.PollsConfig',
'django.contrib.admin',
'django.contrib.auth',
'django.contrib.contenttypes',
'django.contrib.sessions',
'django.contrib.messages',
'django.contrib.staticfiles',
]

MIDDLEWARE = [
'django.middleware.security.SecurityMiddleware',
'django.contrib.sessions.middleware.SessionMiddleware',
'django.middleware.common.CommonMiddleware',
'django.middleware.csrf.CsrfViewMiddleware',
'django.contrib.auth.middleware.AuthenticationMiddleware',
'django.contrib.messages.middleware.MessageMiddleware',
'django.middleware.clickjacking.XFrameOptionsMiddleware',
]

ROOT_URLCONF = 'mysite.urls'

TEMPLATES = [
{
'BACKEND': 'django.template.backends.django.DjangoTemplates',
'DIRS': [os.path.join(BASE_DIR, 'templates')]
'APP_DIRS': True,
'OPTIONS': {
'context_processors': [
'django.template.context_processors.debug',
'django.template.context_processors.request',
'django.contrib.auth.context_processors.auth',
'django.contrib.messages.context_processors.messages',
],
},
},
]

WSGI_APPLICATION = 'mysite.wsgi.application'


# Database
# https://docs.djangoproject.com/en/2.0/ref/settings/#databases

DATABASES = {
'default': {
'ENGINE': 'django.db.backends.sqlite3',
'NAME': os.path.join(BASE_DIR, 'db.sqlite3'),
}
}


# Password validation
#
https://docs.djangoproject.com/en/2.0/ref/settings/#auth-password-validators

AUTH_PASSWORD_VALIDATORS = [
{
'NAME':
'django.contrib.auth.password_validation.UserAttributeSimilarityValidator',
},
{
'NAME':
'django.contrib.auth.password_validation.MinimumLengthValidator',
},
{
'NAME':
'django.contrib.auth.password_validation.CommonPasswordValidator',
},
{
'NAME':
'django.contrib.auth.password_validation.NumericPasswordValidator',
},
]


# Internationalization
# https://docs.djangoproject.com/en/2.0/topics/i18n/

LANGUAGE_CODE = 'en-us'

TIME_ZONE = 'GMT'

USE_I18N = True

USE_L10N = True

USE_TZ = True


# Static files (CSS, JavaScript, Images)
# https://docs.djangoproject.com/en/2.0/howto/static-files/

STATIC_URL = '/static/'
STATIC_ROOT = os.path.join(BASE_DIR, 'STATIC')
MASSAGE_STORAGE = 'django.contrib.message.storage.session.SessionStorage'


this what i get when i run python manage.py runserver
line 371, in execute_from_command_line
utility.execute()
  File
"C:\Users\Admin\AppData\Local\Programs\Python\Python36-32\lib\site-packages\django\core\management\__init__.py",
line 317, in execute
settings.INSTALLED_APPS
  File
"C:\Users\Admin\AppData\Local\Programs\Python\Python36-32\lib\site-packages\django\conf\__init__.py",
line 56, in __getattr__
self._setup(name)
  File
"C:\Users\Admin\AppData\Local\Programs\Python\Python36-32\lib\site-packages\django\conf\__init__.py",
line 43, in _setup
self._wrapped = Settings(settings_module)
  File
"C:\Users\Admin\AppData\Local\Programs\Python\Python36-32\lib\site-packages\django\conf\__init__.py",
line 106, in __init__
mod = importlib.import_module(self.SETTINGS_MODULE)
  File
"C:\Users\Admin\AppData\Local\Programs\Python\Python36-32\lib\importlib\__init__.py",
line 126, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
  File "", line 994, in _gcd_import
  File "", line 971, in _find_and_load
  File "", line 955, in _find_and_load_unlocked
  File "", line 665, in _load_unlocked
  File "", line 674, in exec_module
  File "", line 781, in get_code
  File "", line 741, in source_to_code
  File "", line 219, in
_call_with_frames_removed
  File "C:\Users\Admin\Desktop\Djan Polls\mysite\mysite\settings.py", line
60
'APP_DIRS': True,
 ^
SyntaxError: invalid syntax

On Fri, Jun 29, 2018 at 6:00 AM, Mikhailo Keda  wrote:

> show your code
>
> --
> 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/3d5e9f26-3170-440f-b06b-9b9f7ef976d0%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" 

Re: Can't access my django runserver

2018-06-29 Thread Umar Kambala
Thanks for the reply
My problem is when I run python manage.py runserver I gets this error:

'APP_DIRS': True,
SyntaxError: invalid syntax

Am following this tutorial on the django polls section
On Jun 27, 2018 12:44 PM, "Joshua Kayode"  wrote:

I think you need to give more details, we are all ready to help!

On Jun 27, 2018 10:41, "Umar Kambala"  wrote:

> Please after going through my django polls, now if I runserver I gets this
> error
>
> 'APP_DIRS' : True,
> SyntaxError: invalid syntax.
> Please wat do 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/ms
> gid/django-users/CAPkbFbagk%2B4m5Ze3THLfAABBx8fVENHG7QqunA81
> pYnnUwXJhQ%40mail.gmail.com
> <https://groups.google.com/d/msgid/django-users/CAPkbFbagk%2B4m5Ze3THLfAABBx8fVENHG7QqunA81pYnnUwXJhQ%40mail.gmail.com?utm_medium=email_source=footer>
> .
> 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/CAEL9fCHT%2BHwLkKa4dewj-Kso5kvSi%
3DT1So8Av63WtBkighZf8Q%40mail.gmail.com
<https://groups.google.com/d/msgid/django-users/CAEL9fCHT%2BHwLkKa4dewj-Kso5kvSi%3DT1So8Av63WtBkighZf8Q%40mail.gmail.com?utm_medium=email_source=footer>
.
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/CAPkbFbasi9NWupAi63aQReC8VDdrBxHoShEsG45R386S81Z-fw%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Can't access my django runserver

2018-06-27 Thread Umar Kambala
Please after going through my django polls, now if I runserver I gets this
error

'APP_DIRS' : True,
SyntaxError: invalid syntax.
Please wat do 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/CAPkbFbagk%2B4m5Ze3THLfAABBx8fVENHG7QqunA81pYnnUwXJhQ%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: Django bugfix release: 2.0.6

2018-06-04 Thread Umar Kambala
Thanks for the help,
After making that corrections, I have another error which is

'APP_DIRS': True,
SyntaxError: invalid syntax
Need more help
On Jun 3, 2018 11:37 AM, "刘家伟"  wrote:

> Django need template dir to store your html ,so in the setting.py , you
> shuold set the template dir like this:
>
> TEMPLATES = [
> {
> 'BACKEND': 'django.template.backends.django.DjangoTemplates',
> 'DIRS': [os.path.join(BASE_DIR, 'template')]
> ,
> 'APP_DIRS': True,
> 'OPTIONS': {
> 'context_processors': [
> 'django.template.context_processors.debug',
> 'django.template.context_processors.request',
> 'django.contrib.auth.context_processors.auth',
> 'django.contrib.messages.context_processors.messages',
> ],
> },
> },
> ]
>
> and  it is in root path of your project
>
> 2018-06-03 18:20 GMT+08:00 Umar Kambala :
>
>> Please I have a problem, after successfully going through the django
>> polls and having results, and now wans to run a tuturial on a web
>> development, wen I  runserver I gets errors. I don't really understand
>> where the problem is. The problem is "NameError:name 'template' is not
>> defined"
>> On Jun 1, 2018 4:22 PM, "Carlton Gibson" 
>> wrote:
>>
>>> Details are available on the Django project weblog:
>>> https://www.djangoproject.com/weblog/2018/jun/01/bugfix-release/
>>>
>>> --
>>> 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/ms
>>> gid/django-users/7d59d8c3-cc5b-4ecc-ac23-ce1fcb64d5ac%40googlegroups.com
>>> <https://groups.google.com/d/msgid/django-users/7d59d8c3-cc5b-4ecc-ac23-ce1fcb64d5ac%40googlegroups.com?utm_medium=email_source=footer>
>>> .
>>> 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/ms
>> gid/django-users/CAPkbFbZ20jqjLVTZgJmg7busKczCpZUj3xDjkYeR3h
>> aeWj%3DcYA%40mail.gmail.com
>> <https://groups.google.com/d/msgid/django-users/CAPkbFbZ20jqjLVTZgJmg7busKczCpZUj3xDjkYeR3haeWj%3DcYA%40mail.gmail.com?utm_medium=email_source=footer>
>> .
>> 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/CAH_QYw5%2Brq_Mc%2BLjT4KW8ZS4Q9HK%
> 2B38JwqBkxRdapK6sNte6kw%40mail.gmail.com
> <https://groups.google.com/d/msgid/django-users/CAH_QYw5%2Brq_Mc%2BLjT4KW8ZS4Q9HK%2B38JwqBkxRdapK6sNte6kw%40mail.gmail.com?utm_medium=email_source=footer>
> .
> 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/CAPkbFbZUm5GhOJ8%3DGHi0zCsZuCfc%2BT9s1-GqPGpiaSdedptV3Q%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: Django bugfix release: 2.0.6

2018-06-03 Thread Umar Kambala
Please I have a problem, after successfully going through the django polls
and having results, and now wans to run a tuturial on a web development,
wen I  runserver I gets errors. I don't really understand where the problem
is. The problem is "NameError:name 'template' is not defined"
On Jun 1, 2018 4:22 PM, "Carlton Gibson"  wrote:

> Details are available on the Django project weblog:
> https://www.djangoproject.com/weblog/2018/jun/01/bugfix-release/
>
> --
> 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/7d59d8c3-cc5b-4ecc-ac23-ce1fcb64d5ac%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/CAPkbFbZ20jqjLVTZgJmg7busKczCpZUj3xDjkYeR3haeWj%3DcYA%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: Need help

2018-05-27 Thread Umar Kambala
Thank u will try it
On May 27, 2018 7:01 PM, "Dheeraj Singh" <bond.dee...@gmail.com> wrote:

> I will encourage you to use pyCharm for same it will give you kick start
>
> On Sun, May 27, 2018 at 7:14 PM, Umar Kambala <umarkamb...@gmail.com>
> wrote:
>
>> I wans to start a new project on de django web development but wen I type
>> >django-admin startproject mysite I get this error
>> CouldNotFoundError:No module name 'django.template' plz help me out
>>
>> --
>> 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/ms
>> gid/django-users/CAPkbFbbGger-TTpvRKvKcvhLzarHvjoLB0u7KWZfHU
>> wt%3DwbHPw%40mail.gmail.com
>> <https://groups.google.com/d/msgid/django-users/CAPkbFbbGger-TTpvRKvKcvhLzarHvjoLB0u7KWZfHUwt%3DwbHPw%40mail.gmail.com?utm_medium=email_source=footer>
>> .
>> For more options, visit https://groups.google.com/d/optout.
>>
>
>
>
> --
>
> *Warm Regards*
>
> *Dheeraj Singh | Software Engineer | Girnar Technologies |*207 | Adarsh
> Nagar | Near S Bhag Singh Chowk | Jaipur| 302004 | India |
> +91 141 422 4400 office | +91 9887678100 mobile
>
> www.girnarSoft.com <http://www.girnarsoft.com/> A venture of girnarSoft
>
> Proud owners of www.CarDekho.com <http://www.cardekho.com/>, India's #1
> auto portal!
>
>
> *Confidentiality Notice & Legal Disclaimer:* This E-Mail Message
> (including attachments) may contain Confidential and/or legally privileged
> Information and is meant for the intended recipient(s) only. If you have
> received this e-mail in error and are not the intended recipient/s, kindly
> notify the sender and then delete this e-mail immediately from your system.
> You are also hereby notified that any use, any form of reproduction,
> dissemination, copying, disclosure, modification, distribution and/or
> publication of this e-mail, its contents or its attachment/s other than by
> its intended recipient/s is strictly prohibited and may be unlawful.
>
> Internet Communications cannot be guaranteed to be secure or error-free as
> information could be delayed, intercepted, corrupted, lost, or contain
> viruses. Girnar does not accept any liability for any errors, omissions,
> viruses or computer problems experienced by any recipient as a result of
> this E-mail.
>
> --
> 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/CAOaDkT7Tnk3YfQunEGdzfqX0ALt%3DzZ2LwsjjupUqAc6BUNM4Ow%
> 40mail.gmail.com
> <https://groups.google.com/d/msgid/django-users/CAOaDkT7Tnk3YfQunEGdzfqX0ALt%3DzZ2LwsjjupUqAc6BUNM4Ow%40mail.gmail.com?utm_medium=email_source=footer>
> .
> 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/CAPkbFbaAuag8OQrFnoZ4Xj-k6gWfoDkUXcfA37AUd9yQyEZR7Q%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Need help

2018-05-27 Thread Umar Kambala
I wans to start a new project on de django web development but wen I type
>django-admin startproject mysite I get this error
CouldNotFoundError:No module name 'django.template' plz help me out

-- 
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/CAPkbFbbGger-TTpvRKvKcvhLzarHvjoLB0u7KWZfHUwt%3DwbHPw%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: Django channels with python background tasks

2018-05-27 Thread Umar Kambala
Please when I runserver I gets this error, NameError:name 'template' is not
defined. My templates are in this dir mysite/personal/templates/personal.
What's my problem?
On May 27, 2018 9:04 AM, "Roger Gammans" 
wrote:

> I think there is a little bit of confusion in this thread,a s we keep talk
> about django and the deamon process and ignoring the frontend.
>
> So to clarify; there we are talking about a system with at least 3
> execution environments:
>
> 1 The Browser
> 2 Django backend processes
> 3 The backend daemon/cli -process.
>
> django-channel provides a mechanism which (amongst other uses) can get
> near-realtime updates from a django environment to the web browser, but if
> you don't need this you can just store all your status data in the data
> base . Then when the browser fetches a views it will have the most recent
> data in the database.
>
> You still however need to communicate between the backend process and the
> rest of the django environment, the simplest way as Ryan suggesting is to
> bring this inside the django environment by implementing it as a
> management command, from there you have access to the python end of the
> channels api to send messages to the browsers, or the model objects to save
> to the database. Management commands can be arbitrarily complex, so that
> not a problem in itself.
>
> I have a similar system in development and there we do run the backend
> daemon outside of the dajngo environment, but that makes database access
> hard as you need a separate copy of the database models, or to use raw SQL.
> In our system we still have a django management command though which has
> the responsibility of pumping/handling messages from the deamon to the
> intended destination.
>
> If you want to keep your backend separate l I can see two reasonable paths:
> 1. Use a custom set of django views to provide a API your backend connects
> to over localhost/http to send the it message updates.
> 2. A django management command as a API interface message handler, which
> connects to the backend over one of many message channels out there. (ie.
> zmq, redis, unix-sockets, etc)
>
> Hope this helps a little bit.
>
> On Sun, 2018-05-27 at 01:01 -0700, Sourabh Jaiswal wrote:
>
> HI Ryan,
>
> The back-end script in this case is not only doing telnet. Its getting
> data from multiple network elements using telnet and multi-threading. There
> are multiple threads started when I start the backend script which takes
> monitoring data from diff-diff network elements at the same time. The
> communication between the threads is happening using a python Sockets. A
> TCP server is responsible to pass the messages between threads. So I have
> to have this background program run to collect data.
>
> The control from django I want is, to be able to start multiple instance
> of this whole back-end package when user clicks on such cluster in django
> front end. Passing management IP and other relevant information from django
> DB. and after starting particular instance django should be able to control
> it.
>
> What I found out from recent googling and stuff is. I need to write some
> APIs in back-end program and as Andrew suggested it needs to be written in
> such a way that it can be polled via django.
> So where to start in this regard? can you please guide me for that.
>
> Thanks in advance!
>
> Regards,
> Jaiswal.
>
> On Saturday, May 26, 2018 at 8:15:28 PM UTC+5:30, Ryan Nowakowski wrote:
>
> Another idea: create a Django management command that does the telnet
> stuff and just run that periodically via Cron. You can always move to
> channels or celery later.
>
> On May 26, 2018 9:33:16 AM CDT, Ryan Nowakowski 
> wrote:
>
> In addition to websockets, channels can be used to run background tasks
> that could take a long time for example a telnet connection. You can Google
> Django channels background tasks.
>
> An alternative to channels for background tasks is celery.
>
> On May 26, 2018 5:03:51 AM CDT, Andrew Godwin  wrote:
>
> Hi Jaiswal,
>
> I'm afraid that I can't give detailed help about what your best options
> are or walk you through how to do it - that's something you'll have to
> research and decide on yourself. Channels allows you to do low-latency
> communictation between Django back-ends and JavaScript, but anything you
> can do with it can also be done slower using a polling API connection.
>
> My recommendation would be to start simple - doing it using an API that
> you poll every few seconds - and then once you have that figured out, look
> at how you could improve it using WebSockets and channels.
>
> Andrew
>
> On Sat, May 26, 2018 at 8:38 AM Sourabh Jaiswal 
> wrote:
>
> Hi,
>
>
> I am writing a python based application(CLI Back End) which does telnet to
> some network components and gets some data. It saves the data in sqlite db.
>
>
> For this application I am writing Django based 

Re: help me out

2018-05-27 Thread Umar Kambala
Good day
Plz I have a problem, on mysite I have the following
mysite/personal/templates/personal but wen I runserver it gives me
"NameError: name 'template' is not define.. Please can u help me locate the
problem? Thank u
On May 24, 2018 4:56 PM, "Melvyn Sopacua" <m.r.sopa...@gmail.com> wrote:

> On donderdag 24 mei 2018 17:28:53 CEST Umar Kambala wrote:
> > It is located in mysite/polls/template/polls/
>
> It should be in mysite/polls/templates/polls/
>
> Note: templates with an s, not template.
>
> --
> Melvyn Sopacua
>
> --
> 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/61115682.T1ecY6nzIZ%40fritzbook.
> 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/CAPkbFbYPHKRZ8QXtfLnXV%3D29AcTpeOOxucqGSfd5VAMa3fmfvA%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: help me out

2018-05-24 Thread Umar Kambala
Thanks very much, will try it n get back to u
On May 24, 2018 4:56 PM, "Melvyn Sopacua" <m.r.sopa...@gmail.com> wrote:

> On donderdag 24 mei 2018 17:28:53 CEST Umar Kambala wrote:
> > It is located in mysite/polls/template/polls/
>
> It should be in mysite/polls/templates/polls/
>
> Note: templates with an s, not template.
>
> --
> Melvyn Sopacua
>
> --
> 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/61115682.T1ecY6nzIZ%40fritzbook.
> 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/CAPkbFbYd%2BMAkTa1br28P829FbjWEY-hooSrTafdWnFjzV-gZdA%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: help me out

2018-05-24 Thread Umar Kambala
It is located in mysite/polls/template/polls/
On May 24, 2018 2:41 PM, "Gerardo Palazuelos" <gerardo.palazue...@gmail.com>
wrote:

Hi
Your problem is this (quiten in last part of the error stack):
File "C:\Users\Admin\AppData\Local\Programs\Python\Python36-32\
lib\site-packages\django\template\loader.py", line 47, in select_template
raise TemplateDoesNotExist(', '.join(template_name_list), chain=chain)
django.template.exceptions.TemplateDoesNotExist: polls/index.html,
polls/question_list.html


You have an issue with your templates and where are they located.

Regards,

--
Gerardo Palazuelos Guerrero


> El 24/05/2018, a las 8:32 a.m., Umar Kambala <umarkamb...@gmail.com>
escribió:
>
> File "C:\Users\Admin\AppData\Local\Programs\Python\Python36-32\
lib\site-packages\django\template\loader.py", line 47, in select_template
> raise TemplateDoesNotExist(', '.join(template_name_list), chain=chain)
> django.template.exceptions.TemplateDoesNotExist: polls/index.html,
polls/question_list.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/7002A588-CF73-4FC9-B385-54BB5762F112%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/CAPkbFbbvRnQ94GDk-j4kLQUWUKn_osN6Mm%2ByJzfuRnQCeTGg9g%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: Issue with Django migrate - fine with 2.7x python, but error with 3.6.4?

2018-05-24 Thread Umar Kambala
please help me, this is the error mgs am been getting whenever i run my
manage.py runserver

Not Found: /
[24/May/2018 14:16:40] "GET / HTTP/1.1" 404 2027
Internal Server Error: /polls/
Traceback (most recent call last):
  File
"C:\Users\Admin\AppData\Local\Programs\Python\Python36-32\lib\site-packages\django\core\handlers\exception.py",
line 35, in inner
response = get_response(request)
  File
"C:\Users\Admin\AppData\Local\Programs\Python\Python36-32\lib\site-packages\django\core\handlers\base.py",
line 158, in _get_response
response = self.process_exception_by_middleware(e, request)
  File
"C:\Users\Admin\AppData\Local\Programs\Python\Python36-32\lib\site-packages\django\core\handlers\base.py",
line 156, in _get_response
response = response.render()
  File
"C:\Users\Admin\AppData\Local\Programs\Python\Python36-32\lib\site-packages\django\template\response.py",
line 106, in render
self.content = self.rendered_content
  File
"C:\Users\Admin\AppData\Local\Programs\Python\Python36-32\lib\site-packages\django\template\response.py",
line 81, in rendered_content
template = self.resolve_template(self.template_name)
  File
"C:\Users\Admin\AppData\Local\Programs\Python\Python36-32\lib\site-packages\django\template\response.py",
line 63, in resolve_template
return select_template(template, using=self.using)
  File
"C:\Users\Admin\AppData\Local\Programs\Python\Python36-32\lib\site-packages\django\template\loader.py",
line 47, in select_template
raise TemplateDoesNotExist(', '.join(template_name_list), chain=chain)
django.template.exceptions.TemplateDoesNotExist: polls/index.html,
polls/question_list.html
[24/May/2018 14:16:52] "GET /polls/ HTTP/1.1" 500 79698
Not Found: /favicon.ico
[24/May/2018 14:17:54] "GET /favicon.ico HTTP/1.1" 404 2078

i dont know where exactly the problem is

On Thu, May 24, 2018 at 3:46 AM, Melvyn Sopacua 
wrote:

> On donderdag 24 mei 2018 00:31:57 CEST Benjamin Schollnick wrote:
> > Okay, squashing seems to have resolved this issue...
>
> Did you find any issues with the documentation on squashing?
>
> > Seems a bit voodoo-ish, but it worked.  Any suggestions for preventing
> this
> > in the future would be nice!
>
> It's voodoo-ish cause you stopped analyzing the problem and went for the
> work-
> around.
>
> So my best guess is:
> - The two 0018 migrations were caused by 2 different branches in the
> source
> repository, adding migrations in parallel
> - These were applied to the database also in parallel
> - Further migrations were added, depending on the 0018 migrations
> - One migration was removed that was the common ancenstor for one of the
> 0018
> migrations and another migration.
>
> Without reconstructing the dependency graph it will be difficult to see
> how you
> could have solved it.
> To prevent it, establish a protocol for your developers to communicate
> with
> eachother when adding and removing migrations.
>
> --
> Melvyn Sopacua
>
> --
> 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/1555096.CvhEgTB1t9%40fritzbook.
> 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/CAPkbFbZJAGNK4FOPeJDfkO_-djurDQJ3xDWqp7yo9g2%2BLK6gYQ%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


help me out

2018-05-24 Thread Umar Kambala
 please help me, this is the error mgs am been getting whenever i run my
manage.py runserver

Not Found: /
[24/May/2018 14:16:40] "GET / HTTP/1.1" 404 2027
Internal Server Error: /polls/
Traceback (most recent call last):
  File
"C:\Users\Admin\AppData\Local\Programs\Python\Python36-32\lib\site-packages\django\core\handlers\exception.py",
line 35, in inner
response = get_response(request)
  File
"C:\Users\Admin\AppData\Local\Programs\Python\Python36-32\lib\site-packages\django\core\handlers\base.py",
line 158, in _get_response
response = self.process_exception_by_middleware(e, request)
  File
"C:\Users\Admin\AppData\Local\Programs\Python\Python36-32\lib\site-packages\django\core\handlers\base.py",
line 156, in _get_response
response = response.render()
  File
"C:\Users\Admin\AppData\Local\Programs\Python\Python36-32\lib\site-packages\django\template\response.py",
line 106, in render
self.content = self.rendered_content
  File
"C:\Users\Admin\AppData\Local\Programs\Python\Python36-32\lib\site-packages\django\template\response.py",
line 81, in rendered_content
template = self.resolve_template(self.template_name)
  File
"C:\Users\Admin\AppData\Local\Programs\Python\Python36-32\lib\site-packages\django\template\response.py",
line 63, in resolve_template
return select_template(template, using=self.using)
  File
"C:\Users\Admin\AppData\Local\Programs\Python\Python36-32\lib\site-packages\django\template\loader.py",
line 47, in select_template
raise TemplateDoesNotExist(', '.join(template_name_list), chain=chain)
django.template.exceptions.TemplateDoesNotExist: polls/index.html,
polls/question_list.html
[24/May/2018 14:16:52] "GET /polls/ HTTP/1.1" 500 79698
Not Found: /favicon.ico
[24/May/2018 14:17:54] "GET /favicon.ico HTTP/1.1" 404 2078

i dont know were the problem is

-- 
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/CAPkbFbbrc3YyKU9Q4eF14ssjwu4XBhrnWx__TpUCRgRd5O%2B9%2BQ%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re:

2018-05-24 Thread Umar Kambala
 this my error

TemplateDoesNotExist at /polls/1/

polls/detail.html

Request Method: GET
Request URL: http://127.0.0.1:8000/polls/1/
Django Version: 2.0.5
Exception Type: TemplateDoesNotExist
Exception Value:

polls/detail.html

Exception Location:
C:\Users\Admin\AppData\Local\Programs\Python\Python36-32\lib\site-packages\django\template\loader.py
in get_template, line 19
Python Executable:
C:\Users\Admin\AppData\Local\Programs\Python\Python36-32\python.exe
Python Version: 3.6.5
Python Path:

['C:\\Users\\Admin\\Desktop\\Djan Polls\\mysite',
 
'C:\\Users\\Admin\\AppData\\Local\\Programs\\Python\\Python36-32\\python36.zip',
 'C:\\Users\\Admin\\AppData\\Local\\Programs\\Python\\Python36-32\\DLLs',
 'C:\\Users\\Admin\\AppData\\Local\\Programs\\Python\\Python36-32\\lib',
 'C:\\Users\\Admin\\AppData\\Local\\Programs\\Python\\Python36-32',
 
'C:\\Users\\Admin\\AppData\\Local\\Programs\\Python\\Python36-32\\lib\\site-packages']

Server time: Thu, 24 May 2018 17:41:12 +
Template-loader postmortem

Django tried loading these templates, in this order:

Using engine django:

   - django.template.loaders.app_directories.Loader:
   
C:\Users\Admin\AppData\Local\Programs\Python\Python36-32\lib\site-packages\django\contrib\admin\templates\polls\detail.html
   (Source does not exist)
   - django.template.loaders.app_directories.Loader:
   
C:\Users\Admin\AppData\Local\Programs\Python\Python36-32\lib\site-packages\django\contrib\auth\templates\polls\detail.html
   (Source does not exist)



On Thu, May 24, 2018 at 3:14 AM, Umar Kambala <umarkamb...@gmail.com> wrote:

> I change the template settings to this
>
> TEMPLATES = [ { 'BACKEND': 'django.template.backends.django.DjangoTemplates',
> 'DIRS': [os.path.join(BASE_DIR, 'templates'), ], 'APP_DIRS': True,
>
> ...More code here...
> On May 23, 2018 8:54 PM, "'Anthony Flury' via Django users" <
> django-users@googlegroups.com> wrote:
>
>> Does the file actually exist - it should be in :
>>
>>*my_site/polls/templates/polls/*
>>
>> https://docs.djangoproject.com/en/2.0/intro/tutorial03/#writ
>> e-views-that-actually-do-something
>>
>> Assuming you haven't changed the TEMPLATES settings in some way.
>>
>> --
>> --
>> Anthony Flury
>> email : *anthony.fl...@btinternet.com*
>> Twitter : *@TonyFlury <https://twitter.com/TonyFlury/>*
>>
>> On 23/05/18 11:16, Umar Kambala wrote:
>>
>>>
>>> Yes its spelled correctly on the command window its telling me
>>> TemplateDoesNotExit: polls/detail.html
>>>
>>> On May 23, 2018 9:58 AM, "tango ward" <tangowar...@gmail.com >> tangowar...@gmail.com>> wrote:
>>>
>>> Check if your template name is correct in your views.py
>>>
>>> On Wed, May 23, 2018 at 5:56 PM, Umar Kambala
>>> <umarkamb...@gmail.com <mailto:umarkamb...@gmail.com>> wrote:
>>>
>>> Plz need help
>>> I found this problem TemplateDoesNotExit at /polls/1/ where
>>> might have I gone wrong?
>>>
>>> -- 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
>>> <mailto:django-users+unsubscr...@googlegroups.com>.
>>> To post to this group, send email to
>>> django-users@googlegroups.com
>>> <mailto:django-users@googlegroups.com>.
>>> Visit this group at
>>> https://groups.google.com/group/django-users
>>> <https://groups.google.com/group/django-users>.
>>> To view this discussion on the web visit
>>> https://groups.google.com/d/msgid/django-users/CAPkbFbZwVPyB
>>> pVsA65UTjeJNgKHnQqpsTVmOmeO5GFeusnVfww%40mail.gmail.com
>>> <https://groups.google.com/d/msgid/django-users/CAPkbFbZwVPy
>>> BpVsA65UTjeJNgKHnQqpsTVmOmeO5GFeusnVfww%40mail.gmail.com?utm
>>> _medium=email_source=footer>.
>>> For more options, visit https://groups.google.com/d/optout
>>> <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
>>> <mailto:django-users+unsubscr...@googlegroups.c

Re:

2018-05-24 Thread Umar Kambala
I change the template settings to this

TEMPLATES = [ { 'BACKEND':
'django.template.backends.django.DjangoTemplates', 'DIRS':
[os.path.join(BASE_DIR, 'templates'), ], 'APP_DIRS': True,

...More code here...
On May 23, 2018 8:54 PM, "'Anthony Flury' via Django users" <
django-users@googlegroups.com> wrote:

> Does the file actually exist - it should be in :
>
>*my_site/polls/templates/polls/*
>
> https://docs.djangoproject.com/en/2.0/intro/tutorial03/#writ
> e-views-that-actually-do-something
>
> Assuming you haven't changed the TEMPLATES settings in some way.
>
> --
> --
> Anthony Flury
> email : *anthony.fl...@btinternet.com*
> Twitter : *@TonyFlury <https://twitter.com/TonyFlury/>*
>
> On 23/05/18 11:16, Umar Kambala wrote:
>
>>
>> Yes its spelled correctly on the command window its telling me
>> TemplateDoesNotExit: polls/detail.html
>>
>> On May 23, 2018 9:58 AM, "tango ward" <tangowar...@gmail.com > tangowar...@gmail.com>> wrote:
>>
>> Check if your template name is correct in your views.py
>>
>> On Wed, May 23, 2018 at 5:56 PM, Umar Kambala
>> <umarkamb...@gmail.com <mailto:umarkamb...@gmail.com>> wrote:
>>
>> Plz need help
>> I found this problem TemplateDoesNotExit at /polls/1/ where
>> might have I gone wrong?
>>
>> -- 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
>> <mailto:django-users+unsubscr...@googlegroups.com>.
>> To post to this group, send email to
>> django-users@googlegroups.com
>> <mailto:django-users@googlegroups.com>.
>> Visit this group at
>> https://groups.google.com/group/django-users
>> <https://groups.google.com/group/django-users>.
>> To view this discussion on the web visit
>> https://groups.google.com/d/msgid/django-users/CAPkbFbZwVPyB
>> pVsA65UTjeJNgKHnQqpsTVmOmeO5GFeusnVfww%40mail.gmail.com
>> <https://groups.google.com/d/msgid/django-users/CAPkbFbZwVPy
>> BpVsA65UTjeJNgKHnQqpsTVmOmeO5GFeusnVfww%40mail.gmail.com?
>> utm_medium=email_source=footer>.
>> For more options, visit https://groups.google.com/d/optout
>> <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
>> <mailto:django-users+unsubscr...@googlegroups.com>.
>> To post to this group, send email to django-users@googlegroups.com
>> <mailto:django-users@googlegroups.com>.
>> Visit this group at https://groups.google.com/group/django-users
>> <https://groups.google.com/group/django-users>.
>> To view this discussion on the web visit
>> https://groups.google.com/d/msgid/django-users/CAA6wQLLkxWQd
>> 3wDOMPNDEAPPNeTfVJhU7L1GP4au75yrU6Bcuw%40mail.gmail.com
>> <https://groups.google.com/d/msgid/django-users/CAA6wQLLkxWQ
>> d3wDOMPNDEAPPNeTfVJhU7L1GP4au75yrU6Bcuw%40mail.gmail.com?
>> utm_medium=email_source=footer>.
>> For more options, visit https://groups.google.com/d/optout
>> <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 > django-users+unsubscr...@googlegroups.com>.
>> To post to this group, send email to django-users@googlegroups.com
>> <mailto: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/ms
>> gid/django-users/CAPkbFbZmHibrrij317hQeczBiWqFB_
>> QexEZFxKcko2qpsbzEww%40mail.gmail.com <https://groups.google.com/d/m
>> sgid/django-users/CAPkbFbZmHibrrij317hQeczBiWqFB_
>> QexEZFxKcko2qpsbzEww%40mail.gmail.com?utm_medium=email_source=footer
>> >.
>> For more options, visit https://groups.google.com/d/optout.
>>
>
>
>
> --
> You received this message because you are subscr

Re:

2018-05-24 Thread Umar Kambala
Thanks for the help, I made the corrections n I still gets error
AttributeError: module 'polls.views' has no attribute 'index'.
On May 23, 2018 1:46 PM, "James Farris" <jamesafar...@gmail.com> wrote:

> I assume you mean TemplateDoesNotExist and I also assume you have created
> a templates folder in your project and have details.html in it.
>
> If that’s the case did you check your settings.py for your template
> settings?
>
> It should look something like this.
>
> TEMPLATES = [ { 'BACKEND': 'django.template.backends.
> django.DjangoTemplates', 'DIRS': [os.path.join(BASE_DIR, 'templates'), ],
> 'APP_DIRS': True,
> ...More code here...
>
> On Wed, May 23, 2018 at 3:16 AM Umar Kambala <umarkamb...@gmail.com>
> wrote:
>
>> Yes its spelled correctly on the command window its telling me
>> TemplateDoesNotExit: polls/detail.html
>> On May 23, 2018 9:58 AM, "tango ward" <tangowar...@gmail.com> wrote:
>>
>> Check if your template name is correct in your views.py
>>
>> On Wed, May 23, 2018 at 5:56 PM, Umar Kambala <umarkamb...@gmail.com>
>> wrote:
>>
>>> Plz need help
>>> I found this problem TemplateDoesNotExit at /polls/1/ where might have I
>>> gone wrong?
>>>
>>> --
>>> 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/CAPkbFbZwVPyBpVsA65UTjeJNgKHnQ
>>> qpsTVmOmeO5GFeusnVfww%40mail.gmail.com
>>> <https://groups.google.com/d/msgid/django-users/CAPkbFbZwVPyBpVsA65UTjeJNgKHnQqpsTVmOmeO5GFeusnVfww%40mail.gmail.com?utm_medium=email_source=footer>
>>> .
>>> 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/CAA6wQLLkxWQd3wDOMPNDEAPPNeTfV
>> JhU7L1GP4au75yrU6Bcuw%40mail.gmail.com
>> <https://groups.google.com/d/msgid/django-users/CAA6wQLLkxWQd3wDOMPNDEAPPNeTfVJhU7L1GP4au75yrU6Bcuw%40mail.gmail.com?utm_medium=email_source=footer>
>> .
>> 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/CAPkbFbZmHibrrij317hQeczBiWqFB
>> _QexEZFxKcko2qpsbzEww%40mail.gmail.com
>> <https://groups.google.com/d/msgid/django-users/CAPkbFbZmHibrrij317hQeczBiWqFB_QexEZFxKcko2qpsbzEww%40mail.gmail.com?utm_medium=email_source=footer>
>> .
>> 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/CAE-E-_3n7kHV2N9tYLbC1XeANQXXN4eyM-
> Y3-jZetfZSxnmxbw%40mail.gmail.com
> <https://groups.google.com/d/msgid/django-users/CAE-E-_3n7kHV2N9tYLbC1XeANQXXN4eyM-Y3-jZetfZSxnmxbw%40mail.gmail.com?utm_medium=email_source=footer>
> .
> 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/CAPkbFbau6sqfA4DLvEdwL3puM0cXwACvJxZ7i1_M-gEM0F-ifA%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re:

2018-05-23 Thread Umar Kambala
Yes its spelled correctly on the command window its telling me
TemplateDoesNotExit: polls/detail.html
On May 23, 2018 9:58 AM, "tango ward" <tangowar...@gmail.com> wrote:

Check if your template name is correct in your views.py

On Wed, May 23, 2018 at 5:56 PM, Umar Kambala <umarkamb...@gmail.com> wrote:

> Plz need help
> I found this problem TemplateDoesNotExit at /polls/1/ where might have I
> gone wrong?
>
> --
> 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/ms
> gid/django-users/CAPkbFbZwVPyBpVsA65UTjeJNgKHnQqpsTVmOmeO5GF
> eusnVfww%40mail.gmail.com
> <https://groups.google.com/d/msgid/django-users/CAPkbFbZwVPyBpVsA65UTjeJNgKHnQqpsTVmOmeO5GFeusnVfww%40mail.gmail.com?utm_medium=email_source=footer>
> .
> 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/CAA6wQLLkxWQd3wDOMPNDEAPPNeTfV
JhU7L1GP4au75yrU6Bcuw%40mail.gmail.com
<https://groups.google.com/d/msgid/django-users/CAA6wQLLkxWQd3wDOMPNDEAPPNeTfVJhU7L1GP4au75yrU6Bcuw%40mail.gmail.com?utm_medium=email_source=footer>
.
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/CAPkbFbZmHibrrij317hQeczBiWqFB_QexEZFxKcko2qpsbzEww%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


[no subject]

2018-05-23 Thread Umar Kambala
Plz need help
I found this problem TemplateDoesNotExit at /polls/1/ where might have I
gone wrong?

-- 
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/CAPkbFbZwVPyBpVsA65UTjeJNgKHnQqpsTVmOmeO5GFeusnVfww%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: getting error while reloading the url"http://localhost:8000/polls/".The error is given below.Please tell my why i am seeing this error?

2018-05-23 Thread Umar Kambala
Plz I need ur help, I found this error TemplateDoesNotExit at polls/1/
On May 22, 2018 6:29 PM, "김영찬"  wrote:

> urlpatterns = [
> path('', include('polls.urls')),
> path('admin/', admin.site.urls)
> ]
>
> In this chuck of code, you should write like this,
>
> urlpatterns = [
> path('polls/', include('polls.urls')),
> path('admin/', admin.site.urls),
> ]
>
> 2018년 5월 23일 (수) 오전 12:27, Avitab Ayan Sarmah 님이
> 작성:
>
>> Mysite\urls.py:
>> from django.contrib import admin
>> from django.urls import include, path
>>
>> urlpatterns = [
>> path('', include('polls.urls')),
>> path('admin/', admin.site.urls),
>> ]
>>
>> polls\urls.py:
>> from django.urls import path
>>
>> from . import views
>>
>> app_name = 'polls'
>> urlpatterns = [
>> # ex: /polls/
>> path('', views.IndexView.as_view(), name='index'),
>> # ex: /polls/5/
>> path('/', views.DetailView.as_view(), name='detail'),
>> # ex: /polls/5/results/
>> path('/results/', views.ResultsView.as_view(), name='results'),
>> # ex: /polls/5/vote/
>> path('/vote/', views.vote, name='vote'),
>> ]
>>
>>
>> On Friday, May 18, 2018 at 10:42:17 PM UTC+5:30, James Farris wrote:
>>>
>>> What does your urls.py look like?
>>>
>>> According to the error it doesn’t appear that polls/ is defined in your
>>> urls.py file
>>>
>>> On Fri, May 18, 2018 at 10:05 AM Avitab Ayan Sarmah 
>>> wrote:
>>>
 Page not found (404)
 Request Method: GET
 Request URL: http://localhost:8000/polls/

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

1. [name='index']
2. / [name='detail']
3. /results/ [name='results']
4. /vote/ [name='vote']
5. admin/

 The current path, polls/, didn't match any of these.

 You're seeing this error because you have DEBUG = True in your Django
 settings file. Change that to False, and Django will display a
 standard 404 page.

 --
 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...@googlegroups.com.
 To post to this group, send email to django...@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/54b07f4e-663c-4ed0-a419-541d735148a1%
 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/0d8bf4ad-99dc-4c0e-8341-1084e15daf75%
>> 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/CA%2Bfs_csn_q6ZhQ2ui%3DSd8rk8zgKXKRJs2kYnzyAAR-
> AuAfEkyQ%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/CAPkbFbZV%3DOBdaNirddXE1zwbR3CnLvYSCZcZJviHmiXOM6y8tw%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: need help

2018-05-20 Thread Umar Kambala
Page not found (404)
Request Method: GET
  Request URL:http//127.0.0.1:800/

Using the URLconf defined in mysite.urls, Django tries these URL patterns,
in this order:
1. admin/
2. personal/
The empty path didn't match any of these. This is the mge I hv been getting
when ever I run my surver on personal.py .. Need ur help
On May 2, 2018 5:28 PM, "Aditya Singh" <adityasingh222...@gmail.com> wrote:

> Sure it is mate
>
> On Wed, May 2, 2018, 10:51 PM Umar Kambala <umarkamb...@gmail.com> wrote:
>
>> I believe its low connection
>> On May 2, 2018 5:16 PM, "Jani Tiainen" <rede...@gmail.com> wrote:
>>
>>> Looks like your machine doesn't have connection to (some parts) of
>>> internet for some reason, or you do have very slow connection.
>>>
>>> On Wed, May 2, 2018 at 7:46 PM, <umarkamb...@gmail.com> wrote:
>>>
>>>> please  this is the massage i keep on getting when trying to install
>>>> django.. what do i do?
>>>>
>>>>
>>>> C:\Users\Admin>pip install Django==2.0.5
>>>> Collecting Django==2.0.5
>>>>   Retrying (Retry(total=4, connect=None, read=None, redirect=None,
>>>> status=None)) after connection broken by 'ReadTimeoutError("
>>>> HTTPSConnectionPool(host='pypi.org', port=443): Read timed out. (read
>>>> timeout=15)",)': /simple/django/
>>>>   Downloading https://files.pythonhosted.org/packages/23/91/
>>>> 2245462e57798e9251de87c88b2b8f996d10ddcb68206a8a020561ef7bd3
>>>> /Django-2.0.5-py3-none-any.whl (7.1MB)
>>>> 0% || 10kB 1.2kB/s eta
>>>> 1:36:24Exception:
>>>> Traceback (most recent call last):
>>>>   File "c:\users\admin\appdata\local\programs\python\python36-32\
>>>> lib\site-packages\pip\_vendor\urllib3\response.py", line 302, in
>>>> _error_catcher
>>>> yield
>>>>   File "c:\users\admin\appdata\local\programs\python\python36-32\
>>>> lib\site-packages\pip\_vendor\urllib3\response.py", line 384, in read
>>>> data = self._fp.read(amt)
>>>>   File "c:\users\admin\appdata\local\programs\python\python36-32\
>>>> lib\site-packages\pip\_vendor\cachecontrol\filewrapper.py", line 60,
>>>> in read
>>>> data = self.__fp.read(amt)
>>>>   File 
>>>> "c:\users\admin\appdata\local\programs\python\python36-32\lib\http\client.py",
>>>> line 449, in read
>>>> n = self.readinto(b)
>>>>   File 
>>>> "c:\users\admin\appdata\local\programs\python\python36-32\lib\http\client.py",
>>>> line 493, in readinto
>>>> n = self.fp.readinto(b)
>>>>   File 
>>>> "c:\users\admin\appdata\local\programs\python\python36-32\lib\socket.py",
>>>> line 586, in readinto
>>>> return self._sock.recv_into(b)
>>>>   File 
>>>> "c:\users\admin\appdata\local\programs\python\python36-32\lib\ssl.py",
>>>> line 1009, in recv_into
>>>> return self.read(nbytes, buffer)
>>>>   File 
>>>> "c:\users\admin\appdata\local\programs\python\python36-32\lib\ssl.py",
>>>> line 871, in read
>>>> return self._sslobj.read(len, buffer)
>>>>   File 
>>>> "c:\users\admin\appdata\local\programs\python\python36-32\lib\ssl.py",
>>>> line 631, in read
>>>> v = self._sslobj.read(len, buffer)
>>>> socket.timeout: The read operation timed out
>>>>
>>>> During handling of the above exception, another exception occurred:
>>>>
>>>> Traceback (most recent call last):
>>>>   File "c:\users\admin\appdata\local\programs\python\python36-32\
>>>> lib\site-packages\pip\basecommand.py", line 215, in main
>>>> status = self.run(options, args)
>>>>   File "c:\users\admin\appdata\local\programs\python\python36-32\
>>>> lib\site-packages\pip\commands\install.py", line 324, in run
>>>> requirement_set.prepare_files(finder)
>>>>   File "c:\users\admin\appdata\local\programs\python\python36-32\
>>>> lib\site-packages\pip\req\req_set.py", line 380, in prepare_files
>>>> ignore_dependencies=self.ignore_dependencies))
>>>>   File "c:\users\admin\appdata\local\programs\python\python36-32\
>>>> lib\site-packages\pip\req\req_set.py", line 620, in _prepare_fi

Re: need help

2018-05-19 Thread Umar Kambala
DEBUG is on but when I runserver the content on my header.html is not
displaying on de browser. It gives me not found on de cmd window n 404
error on de webpage.
On May 19, 2018 3:37 PM, "James Farris" <jamesafar...@gmail.com> wrote:

If you set DEBUG = True
Then restart your python server then reload the page, what is the output?

It’s best to leave debug on until you have all the bugs worked out since it
provides a lot of information that will tell you what’s happening


Sent from my mobile device

On May 19, 2018, at 8:32 AM, Umar Kambala <umarkamb...@gmail.com> wrote:

I have been following de tutorials on web development but got lost on de
peronal. Wen I run my server its gud to go but it won't display de content
on de web browser. It always give me 404 error
On May 19, 2018 3:28 PM, "James Farris" <jamesafar...@gmail.com> wrote:

> Are you asking where DEBUG = False is?
> If so, it would be in your project folder/project name/settings.py
>
>
> Sent from my mobile device
>
> On May 19, 2018, at 4:36 AM, Umar Kambala <umarkamb...@gmail.com> wrote:
>
> How to I set my debug = false? On my django settings.. I don't know where
> to get de settings
> On May 3, 2018 12:52 AM, "Gerald Brown" <gsbrow...@gmail.com> wrote:
>
> Have you tried "pip install django" without the "== 2.0.5". I think that
> if you do not specify a version pip will install the latest version.
>
> On Thursday, 03 May, 2018 12:46 AM, umarkamb...@gmail.com wrote:
>
> please  this is the massage i keep on getting when trying to install
> django.. what do i do?
>
>
> C:\Users\Admin>pip install Django==2.0.5
> Collecting Django==2.0.5
>   Retrying (Retry(total=4, connect=None, read=None, redirect=None,
> status=None)) after connection broken by 'ReadTimeoutError("HTTPSConnec
> tionPool(host='pypi.org', port=443): Read timed out. (read
> timeout=15)",)': /simple/django/
>   Downloading https://files.pythonhosted.org/packages/23/91/2245462e57798e
> 9251de87c88b2b8f996d10ddcb68206a8a020561ef7bd3/Django-2.0.5-
> py3-none-any.whl (7.1MB)
> 0% || 10kB 1.2kB/s eta
> 1:36:24Exception:
> Traceback (most recent call last):
>   File "c:\users\admin\appdata\local\programs\python\python36-32\li
> b\site-packages\pip\_vendor\urllib3\response.py", line 302, in
> _error_catcher
> yield
>   File "c:\users\admin\appdata\local\programs\python\python36-32\li
> b\site-packages\pip\_vendor\urllib3\response.py", line 384, in read
> data = self._fp.read(amt)
>   File "c:\users\admin\appdata\local\programs\python\python36-32\li
> b\site-packages\pip\_vendor\cachecontrol\filewrapper.py", line 60, in read
> data = self.__fp.read(amt)
>   File 
> "c:\users\admin\appdata\local\programs\python\python36-32\lib\http\client.py",
> line 449, in read
> n = self.readinto(b)
>   File 
> "c:\users\admin\appdata\local\programs\python\python36-32\lib\http\client.py",
> line 493, in readinto
> n = self.fp.readinto(b)
>   File 
> "c:\users\admin\appdata\local\programs\python\python36-32\lib\socket.py",
> line 586, in readinto
> return self._sock.recv_into(b)
>   File "c:\users\admin\appdata\local\programs\python\python36-32\lib\ssl.py",
> line 1009, in recv_into
> return self.read(nbytes, buffer)
>   File "c:\users\admin\appdata\local\programs\python\python36-32\lib\ssl.py",
> line 871, in read
> return self._sslobj.read(len, buffer)
>   File "c:\users\admin\appdata\local\programs\python\python36-32\lib\ssl.py",
> line 631, in read
> v = self._sslobj.read(len, buffer)
> socket.timeout: The read operation timed out
>
> During handling of the above exception, another exception occurred:
>
> Traceback (most recent call last):
>   File "c:\users\admin\appdata\local\programs\python\python36-32\li
> b\site-packages\pip\basecommand.py", line 215, in main
> status = self.run(options, args)
>   File "c:\users\admin\appdata\local\programs\python\python36-32\li
> b\site-packages\pip\commands\install.py", line 324, in run
> requirement_set.prepare_files(finder)
>   File "c:\users\admin\appdata\local\programs\python\python36-32\li
> b\site-packages\pip\req\req_set.py", line 380, in prepare_files
> ignore_dependencies=self.ignore_dependencies))
>   File "c:\users\admin\appdata\local\programs\python\python36-32\li
> b\site-packages\pip\req\req_set.py", line 620, in _prepare_file
> session=self.session, hashes=hashes)
>   File "c:\users\admin\appdata\local\programs\python\python36-32\li
> b\site-packages\pip\download.py", line 821, in 

Re: need help

2018-05-19 Thread Umar Kambala
I have been following de tutorials on web development but got lost on de
peronal. Wen I run my server its gud to go but it won't display de content
on de web browser. It always give me 404 error
On May 19, 2018 3:28 PM, "James Farris" <jamesafar...@gmail.com> wrote:

> Are you asking where DEBUG = False is?
> If so, it would be in your project folder/project name/settings.py
>
>
> Sent from my mobile device
>
> On May 19, 2018, at 4:36 AM, Umar Kambala <umarkamb...@gmail.com> wrote:
>
> How to I set my debug = false? On my django settings.. I don't know where
> to get de settings
> On May 3, 2018 12:52 AM, "Gerald Brown" <gsbrow...@gmail.com> wrote:
>
> Have you tried "pip install django" without the "== 2.0.5". I think that
> if you do not specify a version pip will install the latest version.
>
> On Thursday, 03 May, 2018 12:46 AM, umarkamb...@gmail.com wrote:
>
> please  this is the massage i keep on getting when trying to install
> django.. what do i do?
>
>
> C:\Users\Admin>pip install Django==2.0.5
> Collecting Django==2.0.5
>   Retrying (Retry(total=4, connect=None, read=None, redirect=None,
> status=None)) after connection broken by 'ReadTimeoutError("HTTPSConnec
> tionPool(host='pypi.org', port=443): Read timed out. (read
> timeout=15)",)': /simple/django/
>   Downloading https://files.pythonhosted.org/packages/23/91/2245462e57798e
> 9251de87c88b2b8f996d10ddcb68206a8a020561ef7bd3/Django-2.0.5-
> py3-none-any.whl (7.1MB)
> 0% || 10kB 1.2kB/s eta
> 1:36:24Exception:
> Traceback (most recent call last):
>   File "c:\users\admin\appdata\local\programs\python\python36-32\li
> b\site-packages\pip\_vendor\urllib3\response.py", line 302, in
> _error_catcher
> yield
>   File "c:\users\admin\appdata\local\programs\python\python36-32\li
> b\site-packages\pip\_vendor\urllib3\response.py", line 384, in read
> data = self._fp.read(amt)
>   File "c:\users\admin\appdata\local\programs\python\python36-32\li
> b\site-packages\pip\_vendor\cachecontrol\filewrapper.py", line 60, in read
> data = self.__fp.read(amt)
>   File 
> "c:\users\admin\appdata\local\programs\python\python36-32\lib\http\client.py",
> line 449, in read
> n = self.readinto(b)
>   File 
> "c:\users\admin\appdata\local\programs\python\python36-32\lib\http\client.py",
> line 493, in readinto
> n = self.fp.readinto(b)
>   File 
> "c:\users\admin\appdata\local\programs\python\python36-32\lib\socket.py",
> line 586, in readinto
> return self._sock.recv_into(b)
>   File "c:\users\admin\appdata\local\programs\python\python36-32\lib\ssl.py",
> line 1009, in recv_into
> return self.read(nbytes, buffer)
>   File "c:\users\admin\appdata\local\programs\python\python36-32\lib\ssl.py",
> line 871, in read
> return self._sslobj.read(len, buffer)
>   File "c:\users\admin\appdata\local\programs\python\python36-32\lib\ssl.py",
> line 631, in read
> v = self._sslobj.read(len, buffer)
> socket.timeout: The read operation timed out
>
> During handling of the above exception, another exception occurred:
>
> Traceback (most recent call last):
>   File "c:\users\admin\appdata\local\programs\python\python36-32\li
> b\site-packages\pip\basecommand.py", line 215, in main
> status = self.run(options, args)
>   File "c:\users\admin\appdata\local\programs\python\python36-32\li
> b\site-packages\pip\commands\install.py", line 324, in run
> requirement_set.prepare_files(finder)
>   File "c:\users\admin\appdata\local\programs\python\python36-32\li
> b\site-packages\pip\req\req_set.py", line 380, in prepare_files
> ignore_dependencies=self.ignore_dependencies))
>   File "c:\users\admin\appdata\local\programs\python\python36-32\li
> b\site-packages\pip\req\req_set.py", line 620, in _prepare_file
> session=self.session, hashes=hashes)
>   File "c:\users\admin\appdata\local\programs\python\python36-32\li
> b\site-packages\pip\download.py", line 821, in unpack_url
> hashes=hashes
>   File "c:\users\admin\appdata\local\programs\python\python36-32\li
> b\site-packages\pip\download.py", line 659, in unpack_http_url
> hashes)
>   File "c:\users\admin\appdata\local\programs\python\python36-32\li
> b\site-packages\pip\download.py", line 882, in _download_http_url
> _download_url(resp, link, content_file, hashes)
>   File "c:\users\admin\appdata\local\programs\python\python36-32\li
> b\site-packages\pip\download.py", line 603, in _download_url
> hashes.check_against_chunks(downl

Re: need help

2018-05-19 Thread Umar Kambala
How to I set my debug = false? On my django settings.. I don't know where
to get de settings
On May 3, 2018 12:52 AM, "Gerald Brown"  wrote:

Have you tried "pip install django" without the "== 2.0.5". I think that if
you do not specify a version pip will install the latest version.

On Thursday, 03 May, 2018 12:46 AM, umarkamb...@gmail.com wrote:

please  this is the massage i keep on getting when trying to install
django.. what do i do?


C:\Users\Admin>pip install Django==2.0.5
Collecting Django==2.0.5
  Retrying (Retry(total=4, connect=None, read=None, redirect=None,
status=None)) after connection broken by 'ReadTimeoutError("
HTTPSConnectionPool(host='pypi.org', port=443): Read timed out. (read
timeout=15)",)': /simple/django/
  Downloading https://files.pythonhosted.org/packages/23/91/
2245462e57798e9251de87c88b2b8f996d10ddcb68206a8a020561ef7bd3
/Django-2.0.5-py3-none-any.whl (7.1MB)
0% || 10kB 1.2kB/s eta 1:36:24Exception:
Traceback (most recent call last):
  File "c:\users\admin\appdata\local\programs\python\python36-32\
lib\site-packages\pip\_vendor\urllib3\response.py", line 302, in
_error_catcher
yield
  File "c:\users\admin\appdata\local\programs\python\python36-32\
lib\site-packages\pip\_vendor\urllib3\response.py", line 384, in read
data = self._fp.read(amt)
  File "c:\users\admin\appdata\local\programs\python\python36-32\
lib\site-packages\pip\_vendor\cachecontrol\filewrapper.py", line 60, in read
data = self.__fp.read(amt)
  File 
"c:\users\admin\appdata\local\programs\python\python36-32\lib\http\client.py",
line 449, in read
n = self.readinto(b)
  File 
"c:\users\admin\appdata\local\programs\python\python36-32\lib\http\client.py",
line 493, in readinto
n = self.fp.readinto(b)
  File "c:\users\admin\appdata\local\programs\python\python36-32\lib\socket.py",
line 586, in readinto
return self._sock.recv_into(b)
  File "c:\users\admin\appdata\local\programs\python\python36-32\lib\ssl.py",
line 1009, in recv_into
return self.read(nbytes, buffer)
  File "c:\users\admin\appdata\local\programs\python\python36-32\lib\ssl.py",
line 871, in read
return self._sslobj.read(len, buffer)
  File "c:\users\admin\appdata\local\programs\python\python36-32\lib\ssl.py",
line 631, in read
v = self._sslobj.read(len, buffer)
socket.timeout: The read operation timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "c:\users\admin\appdata\local\programs\python\python36-32\
lib\site-packages\pip\basecommand.py", line 215, in main
status = self.run(options, args)
  File "c:\users\admin\appdata\local\programs\python\python36-32\
lib\site-packages\pip\commands\install.py", line 324, in run
requirement_set.prepare_files(finder)
  File "c:\users\admin\appdata\local\programs\python\python36-32\
lib\site-packages\pip\req\req_set.py", line 380, in prepare_files
ignore_dependencies=self.ignore_dependencies))
  File "c:\users\admin\appdata\local\programs\python\python36-32\
lib\site-packages\pip\req\req_set.py", line 620, in _prepare_file
session=self.session, hashes=hashes)
  File "c:\users\admin\appdata\local\programs\python\python36-32\
lib\site-packages\pip\download.py", line 821, in unpack_url
hashes=hashes
  File "c:\users\admin\appdata\local\programs\python\python36-32\
lib\site-packages\pip\download.py", line 659, in unpack_http_url
hashes)
  File "c:\users\admin\appdata\local\programs\python\python36-32\
lib\site-packages\pip\download.py", line 882, in _download_http_url
_download_url(resp, link, content_file, hashes)
  File "c:\users\admin\appdata\local\programs\python\python36-32\
lib\site-packages\pip\download.py", line 603, in _download_url
hashes.check_against_chunks(downloaded_chunks)
  File "c:\users\admin\appdata\local\programs\python\python36-32\
lib\site-packages\pip\utils\hashes.py", line 46, in check_against_chunks
for chunk in chunks:
  File "c:\users\admin\appdata\local\programs\python\python36-32\
lib\site-packages\pip\download.py", line 571, in written_chunks
for chunk in chunks:
  File "c:\users\admin\appdata\local\programs\python\python36-32\
lib\site-packages\pip\utils\ui.py", line 139, in iter
for x in it:
  File "c:\users\admin\appdata\local\programs\python\python36-32\
lib\site-packages\pip\download.py", line 560, in resp_read
decode_content=False):
  File "c:\users\admin\appdata\local\programs\python\python36-32\
lib\site-packages\pip\_vendor\urllib3\response.py", line 436, in stream
data = self.read(amt=amt, decode_content=decode_content)
  File "c:\users\admin\appdata\local\programs\python\python36-32\
lib\site-packages\pip\_vendor\urllib3\response.py", line 401, in read
raise IncompleteRead(self._fp_bytes_read, self.length_remaining)
  File 
"c:\users\admin\appdata\local\programs\python\python36-32\lib\contextlib.py",
line 99, in __exit__
self.gen.throw(type, value, traceback)

Re: Need help: django-admin.py startproject [projectname] creates directory which I cannot access

2018-05-03 Thread Umar Kambala
That its not recognized as internal or external command
On May 3, 2018 11:21 AM, "Ayser shuhaib"  wrote:

> Create your projectdir manually then inside the projectdir folder (right
> click with your mouse and open command window here)
> After that continue with Django commands
> django-admin startproject ...
>
> On Thu, 03 May 2018 at 07:59, Daisy  wrote:
>
>> Thank you very much for your reply, and here I my answers:
>>   * Does the directory show up when you do a *dir* command in projectdir
>> ? It does not show up, although it says that there are 2 directories
>> (see attachment).
>>
>>   * Can you do anything on the *mysite* directory - can you rename it,
>> or even delete it ? I can't - system cannot find the file specified.
>>   * Can you see it in File explorer - No.
>>   * Can you manually create a directory in your *projectdir* ? - Yes,
>> and it is displayed after command *dir*.
>>
>>   * Can you create a different projectdir - and run *django-admin
>> startproject mysite* in there ? - I tried creating it on different
>> paths, both on C and D disk, but it was the same behavior.
>>
>> What can I do now? :)
>>
>> четвртак, 03. мај 2018. 01.08.04 UTC+2, TonyF-UK је написао/ла:
>>
>>> Lets troubleshoot:
>>>
>>>   * Does the directory show up when you do a *dir* command in projectdir
>>> ?
>>>   * Can you do anything on the *mysite* directory - can you rename it,
>>> or even delete it ?
>>>   * Can you see it in File explorer
>>>   * Can you manually create a directory in your *projectdir* ?
>>>   * Can you create a different projectdir - and run *django-admin
>>> startproject mysite* in there ?
>>>
>>> My gut feeling is that this is a diskdrive/OS type issue - rather than
>>> Django specific
>>>
>>> You may have a corrupted directory - or a bad section of disk; try the
>>> troubleshooting steps above first.
>>>
>>>
>>>
>>> On 02/05/18 22:09, Daisy wrote:
>>> > I installed django according to provided instructions and I am trying
>>> > to follow the Django article: Writing your first Django app, part 1
>>> >  but I am
>>> > stuck at Creating a project with command: django-admin startproject
>>> > mysite.
>>> > The problem is that I CAN execute command but when I try to access
>>> > directory with cd mysite I get the message "The system cannot find the
>>> > path specified." although when I try to execute command startproject
>>> > again I get the message that it already exists. (see attachment)
>>> > I cannot find new directory via windows explorer neither.
>>> > I have installed django 2.0.5 version and python 3.6.3 (32-bit).
>>> > --
>>> > 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...@googlegroups.com
>>> > .
>>> > To post to this group, send email to django...@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/c574d479-
>>> a1b6-4c20-91ab-208ae42d4996%40googlegroups.com
>>> > >> a1b6-4c20-91ab-208ae42d4996%40googlegroups.com?utm_medium=
>>> email_source=footer>.
>>> > For more options, visit https://groups.google.com/d/optout.
>>>
>>>
>>> --
>>> --
>>> Anthony Flury
>>>
>> email : *anthon...@btinternet.com*
>>>
>> Twitter : *@TonyFlury *
>>>
>>> --
>> 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/c93769b1-55ca-47f7-9f8f-474ab07ede88%
>> 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/CAE0AZGKfOqYa3bpFi5LYXQgRNP1yx
> 

Re: need help

2018-05-02 Thread Umar Kambala
Thanks
On May 2, 2018 5:33 PM, "Aditya Singh" <adityasingh222...@gmail.com> wrote:

> Try to upgrade your internet connection or set up a hotspot from a mobile
> device having a good signal strength and internet speed and try again.
> Should work for sure
>
> On Wed, May 2, 2018, 11:01 PM Umar Kambala <umarkamb...@gmail.com> wrote:
>
>> So wat do I do then?
>> On May 2, 2018 5:28 PM, "Aditya Singh" <adityasingh222...@gmail.com>
>> wrote:
>>
>>> Sure it is mate
>>>
>>> On Wed, May 2, 2018, 10:51 PM Umar Kambala <umarkamb...@gmail.com>
>>> wrote:
>>>
>>>> I believe its low connection
>>>> On May 2, 2018 5:16 PM, "Jani Tiainen" <rede...@gmail.com> wrote:
>>>>
>>>>> Looks like your machine doesn't have connection to (some parts) of
>>>>> internet for some reason, or you do have very slow connection.
>>>>>
>>>>> On Wed, May 2, 2018 at 7:46 PM, <umarkamb...@gmail.com> wrote:
>>>>>
>>>>>> please  this is the massage i keep on getting when trying to install
>>>>>> django.. what do i do?
>>>>>>
>>>>>>
>>>>>> C:\Users\Admin>pip install Django==2.0.5
>>>>>> Collecting Django==2.0.5
>>>>>>   Retrying (Retry(total=4, connect=None, read=None, redirect=None,
>>>>>> status=None)) after connection broken by 'ReadTimeoutError("
>>>>>> HTTPSConnectionPool(host='pypi.org', port=443): Read timed out.
>>>>>> (read timeout=15)",)': /simple/django/
>>>>>>   Downloading https://files.pythonhosted.org/packages/23/91/
>>>>>> 2245462e57798e9251de87c88b2b8f996d10ddcb68206a8a020561ef7bd3
>>>>>> /Django-2.0.5-py3-none-any.whl (7.1MB)
>>>>>> 0% || 10kB 1.2kB/s eta
>>>>>> 1:36:24Exception:
>>>>>> Traceback (most recent call last):
>>>>>>   File "c:\users\admin\appdata\local\programs\python\python36-32\
>>>>>> lib\site-packages\pip\_vendor\urllib3\response.py", line 302, in
>>>>>> _error_catcher
>>>>>> yield
>>>>>>   File "c:\users\admin\appdata\local\programs\python\python36-32\
>>>>>> lib\site-packages\pip\_vendor\urllib3\response.py", line 384, in read
>>>>>> data = self._fp.read(amt)
>>>>>>   File "c:\users\admin\appdata\local\programs\python\python36-32\
>>>>>> lib\site-packages\pip\_vendor\cachecontrol\filewrapper.py", line 60,
>>>>>> in read
>>>>>> data = self.__fp.read(amt)
>>>>>>   File 
>>>>>> "c:\users\admin\appdata\local\programs\python\python36-32\lib\http\client.py",
>>>>>> line 449, in read
>>>>>> n = self.readinto(b)
>>>>>>   File 
>>>>>> "c:\users\admin\appdata\local\programs\python\python36-32\lib\http\client.py",
>>>>>> line 493, in readinto
>>>>>> n = self.fp.readinto(b)
>>>>>>   File 
>>>>>> "c:\users\admin\appdata\local\programs\python\python36-32\lib\socket.py",
>>>>>> line 586, in readinto
>>>>>> return self._sock.recv_into(b)
>>>>>>   File 
>>>>>> "c:\users\admin\appdata\local\programs\python\python36-32\lib\ssl.py",
>>>>>> line 1009, in recv_into
>>>>>> return self.read(nbytes, buffer)
>>>>>>   File 
>>>>>> "c:\users\admin\appdata\local\programs\python\python36-32\lib\ssl.py",
>>>>>> line 871, in read
>>>>>> return self._sslobj.read(len, buffer)
>>>>>>   File 
>>>>>> "c:\users\admin\appdata\local\programs\python\python36-32\lib\ssl.py",
>>>>>> line 631, in read
>>>>>> v = self._sslobj.read(len, buffer)
>>>>>> socket.timeout: The read operation timed out
>>>>>>
>>>>>> During handling of the above exception, another exception occurred:
>>>>>>
>>>>>> Traceback (most recent call last):
>>>>>>   File "c:\users\admin\appdata\local\programs\python\python36-32\
>>>>>> lib\site-packages\pip\basecommand.py", line 215, in main
>>>>>> st

Re: need help

2018-05-02 Thread Umar Kambala
So wat do I do then?
On May 2, 2018 5:28 PM, "Aditya Singh" <adityasingh222...@gmail.com> wrote:

> Sure it is mate
>
> On Wed, May 2, 2018, 10:51 PM Umar Kambala <umarkamb...@gmail.com> wrote:
>
>> I believe its low connection
>> On May 2, 2018 5:16 PM, "Jani Tiainen" <rede...@gmail.com> wrote:
>>
>>> Looks like your machine doesn't have connection to (some parts) of
>>> internet for some reason, or you do have very slow connection.
>>>
>>> On Wed, May 2, 2018 at 7:46 PM, <umarkamb...@gmail.com> wrote:
>>>
>>>> please  this is the massage i keep on getting when trying to install
>>>> django.. what do i do?
>>>>
>>>>
>>>> C:\Users\Admin>pip install Django==2.0.5
>>>> Collecting Django==2.0.5
>>>>   Retrying (Retry(total=4, connect=None, read=None, redirect=None,
>>>> status=None)) after connection broken by 'ReadTimeoutError("
>>>> HTTPSConnectionPool(host='pypi.org', port=443): Read timed out. (read
>>>> timeout=15)",)': /simple/django/
>>>>   Downloading https://files.pythonhosted.org/packages/23/91/
>>>> 2245462e57798e9251de87c88b2b8f996d10ddcb68206a8a020561ef7bd3
>>>> /Django-2.0.5-py3-none-any.whl (7.1MB)
>>>> 0% || 10kB 1.2kB/s eta
>>>> 1:36:24Exception:
>>>> Traceback (most recent call last):
>>>>   File "c:\users\admin\appdata\local\programs\python\python36-32\
>>>> lib\site-packages\pip\_vendor\urllib3\response.py", line 302, in
>>>> _error_catcher
>>>> yield
>>>>   File "c:\users\admin\appdata\local\programs\python\python36-32\
>>>> lib\site-packages\pip\_vendor\urllib3\response.py", line 384, in read
>>>> data = self._fp.read(amt)
>>>>   File "c:\users\admin\appdata\local\programs\python\python36-32\
>>>> lib\site-packages\pip\_vendor\cachecontrol\filewrapper.py", line 60,
>>>> in read
>>>> data = self.__fp.read(amt)
>>>>   File 
>>>> "c:\users\admin\appdata\local\programs\python\python36-32\lib\http\client.py",
>>>> line 449, in read
>>>> n = self.readinto(b)
>>>>   File 
>>>> "c:\users\admin\appdata\local\programs\python\python36-32\lib\http\client.py",
>>>> line 493, in readinto
>>>> n = self.fp.readinto(b)
>>>>   File 
>>>> "c:\users\admin\appdata\local\programs\python\python36-32\lib\socket.py",
>>>> line 586, in readinto
>>>> return self._sock.recv_into(b)
>>>>   File 
>>>> "c:\users\admin\appdata\local\programs\python\python36-32\lib\ssl.py",
>>>> line 1009, in recv_into
>>>> return self.read(nbytes, buffer)
>>>>   File 
>>>> "c:\users\admin\appdata\local\programs\python\python36-32\lib\ssl.py",
>>>> line 871, in read
>>>> return self._sslobj.read(len, buffer)
>>>>   File 
>>>> "c:\users\admin\appdata\local\programs\python\python36-32\lib\ssl.py",
>>>> line 631, in read
>>>> v = self._sslobj.read(len, buffer)
>>>> socket.timeout: The read operation timed out
>>>>
>>>> During handling of the above exception, another exception occurred:
>>>>
>>>> Traceback (most recent call last):
>>>>   File "c:\users\admin\appdata\local\programs\python\python36-32\
>>>> lib\site-packages\pip\basecommand.py", line 215, in main
>>>> status = self.run(options, args)
>>>>   File "c:\users\admin\appdata\local\programs\python\python36-32\
>>>> lib\site-packages\pip\commands\install.py", line 324, in run
>>>> requirement_set.prepare_files(finder)
>>>>   File "c:\users\admin\appdata\local\programs\python\python36-32\
>>>> lib\site-packages\pip\req\req_set.py", line 380, in prepare_files
>>>> ignore_dependencies=self.ignore_dependencies))
>>>>   File "c:\users\admin\appdata\local\programs\python\python36-32\
>>>> lib\site-packages\pip\req\req_set.py", line 620, in _prepare_file
>>>> session=self.session, hashes=hashes)
>>>>   File "c:\users\admin\appdata\local\programs\python\python36-32\
>>>> lib\site-packages\pip\download.py", line 821, in unpack_url
>>>> hashes=hashes
>>>>   File "c:\users\admin\

Re: need help

2018-05-02 Thread Umar Kambala
I believe its low connection
On May 2, 2018 5:16 PM, "Jani Tiainen"  wrote:

> Looks like your machine doesn't have connection to (some parts) of
> internet for some reason, or you do have very slow connection.
>
> On Wed, May 2, 2018 at 7:46 PM,  wrote:
>
>> please  this is the massage i keep on getting when trying to install
>> django.. what do i do?
>>
>>
>> C:\Users\Admin>pip install Django==2.0.5
>> Collecting Django==2.0.5
>>   Retrying (Retry(total=4, connect=None, read=None, redirect=None,
>> status=None)) after connection broken by 'ReadTimeoutError("HTTPSConnec
>> tionPool(host='pypi.org', port=443): Read timed out. (read
>> timeout=15)",)': /simple/django/
>>   Downloading https://files.pythonhosted.org
>> /packages/23/91/2245462e57798e9251de87c88b2b8f996d10ddcb6820
>> 6a8a020561ef7bd3/Django-2.0.5-py3-none-any.whl (7.1MB)
>> 0% || 10kB 1.2kB/s eta
>> 1:36:24Exception:
>> Traceback (most recent call last):
>>   File "c:\users\admin\appdata\local\programs\python\python36-32\li
>> b\site-packages\pip\_vendor\urllib3\response.py", line 302, in
>> _error_catcher
>> yield
>>   File "c:\users\admin\appdata\local\programs\python\python36-32\li
>> b\site-packages\pip\_vendor\urllib3\response.py", line 384, in read
>> data = self._fp.read(amt)
>>   File "c:\users\admin\appdata\local\programs\python\python36-32\li
>> b\site-packages\pip\_vendor\cachecontrol\filewrapper.py", line 60, in
>> read
>> data = self.__fp.read(amt)
>>   File 
>> "c:\users\admin\appdata\local\programs\python\python36-32\lib\http\client.py",
>> line 449, in read
>> n = self.readinto(b)
>>   File 
>> "c:\users\admin\appdata\local\programs\python\python36-32\lib\http\client.py",
>> line 493, in readinto
>> n = self.fp.readinto(b)
>>   File 
>> "c:\users\admin\appdata\local\programs\python\python36-32\lib\socket.py",
>> line 586, in readinto
>> return self._sock.recv_into(b)
>>   File "c:\users\admin\appdata\local\programs\python\python36-32\lib\ssl.py",
>> line 1009, in recv_into
>> return self.read(nbytes, buffer)
>>   File "c:\users\admin\appdata\local\programs\python\python36-32\lib\ssl.py",
>> line 871, in read
>> return self._sslobj.read(len, buffer)
>>   File "c:\users\admin\appdata\local\programs\python\python36-32\lib\ssl.py",
>> line 631, in read
>> v = self._sslobj.read(len, buffer)
>> socket.timeout: The read operation timed out
>>
>> During handling of the above exception, another exception occurred:
>>
>> Traceback (most recent call last):
>>   File "c:\users\admin\appdata\local\programs\python\python36-32\li
>> b\site-packages\pip\basecommand.py", line 215, in main
>> status = self.run(options, args)
>>   File "c:\users\admin\appdata\local\programs\python\python36-32\li
>> b\site-packages\pip\commands\install.py", line 324, in run
>> requirement_set.prepare_files(finder)
>>   File "c:\users\admin\appdata\local\programs\python\python36-32\li
>> b\site-packages\pip\req\req_set.py", line 380, in prepare_files
>> ignore_dependencies=self.ignore_dependencies))
>>   File "c:\users\admin\appdata\local\programs\python\python36-32\li
>> b\site-packages\pip\req\req_set.py", line 620, in _prepare_file
>> session=self.session, hashes=hashes)
>>   File "c:\users\admin\appdata\local\programs\python\python36-32\li
>> b\site-packages\pip\download.py", line 821, in unpack_url
>> hashes=hashes
>>   File "c:\users\admin\appdata\local\programs\python\python36-32\li
>> b\site-packages\pip\download.py", line 659, in unpack_http_url
>> hashes)
>>   File "c:\users\admin\appdata\local\programs\python\python36-32\li
>> b\site-packages\pip\download.py", line 882, in _download_http_url
>> _download_url(resp, link, content_file, hashes)
>>   File "c:\users\admin\appdata\local\programs\python\python36-32\li
>> b\site-packages\pip\download.py", line 603, in _download_url
>> hashes.check_against_chunks(downloaded_chunks)
>>   File "c:\users\admin\appdata\local\programs\python\python36-32\li
>> b\site-packages\pip\utils\hashes.py", line 46, in check_against_chunks
>> for chunk in chunks:
>>   File "c:\users\admin\appdata\local\programs\python\python36-32\li
>> b\site-packages\pip\download.py", line 571, in written_chunks
>> for chunk in chunks:
>>   File "c:\users\admin\appdata\local\programs\python\python36-32\li
>> b\site-packages\pip\utils\ui.py", line 139, in iter
>> for x in it:
>>   File "c:\users\admin\appdata\local\programs\python\python36-32\li
>> b\site-packages\pip\download.py", line 560, in resp_read
>> decode_content=False):
>>   File "c:\users\admin\appdata\local\programs\python\python36-32\li
>> b\site-packages\pip\_vendor\urllib3\response.py", line 436, in stream
>> data = self.read(amt=amt, decode_content=decode_content)
>>   File "c:\users\admin\appdata\local\programs\python\python36-32\li
>> b\site-packages\pip\_vendor\urllib3\response.py", line 401, in read
>> raise 

Re: django admin and logout

2018-05-02 Thread Umar Kambala
Don't get u.. The problem is that I can't install it
On May 2, 2018 5:15 PM, "Jani Tiainen"  wrote:

> Hi,
>
> It really depends on your definition of "no activity".
>
> By default login is tied to session which expiracy you can set (default 2
> weeks).
>
> Session expiry is by default only updated when session is changed, so for
> example pure reads that don't touch session do not count as activity. This
> can be changed so that every request touches session.
>
> HTH.
>
> On Wed, May 2, 2018 at 7:38 PM, Hervé Edorh  wrote:
>
>> It is possible to make django admin application to logout after 5 minutes
>> of no activity? 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/ms
>> gid/django-users/1b1bc621-e252-49a7-810d-3b894ad4a19f%40googlegroups.com
>> 
>> .
>> For more options, visit https://groups.google.com/d/optout.
>>
>
>
>
> --
> Jani Tiainen
>
> - Well planned is half done, and a half done has been sufficient before...
>
> --
> 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/CAHn91of-U9-9LWHCUhPx4W%3DaqOKfx%3DSUT-
> q_YoUT9QU8Rt_vjw%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/CAPkbFbayY7oQSPzv497DuzWopE_cxoH5Yt5SYY%2BXUJO66Aa6MQ%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.