a simple software listing app.

2015-07-01 Thread derek riemer
I have a model that represents a list of software. This way pieces of
software can be added interactivly.

from django.db import models

# Create your models here.


class Software(models.Model):
name = models.CharField(max_length=50)
programming_language = models.CharField(max_length=50)
discription = models.TextField()
git_hub_url = models.URLField(blank=True)
the_file = models.URLField(blank=True)
latest_version = models.CharField(max_length=10) #xx.yy.zz/ some letter
published_on = models.DateField()

def __str__(self):
return self.name+", version "+str(self.latest_version)+",
written in "+self.programming_language+", published on
"+self.published_on.strftime("%x")




I am curious on how I can adapt that particular apps admin page to have
a title of software list, but keep the default title of my admin site
for the whole app, or better yet change the site title for my admin site?
My software_list/admin.py looks like this,
from django.contrib import admin
from .models import Software
from django.contrib.admin import AdminSite


class MyAdminSite(AdminSite):
site_header = 'Monty Python administration'

admin_site = MyAdminSite(name='software_list')
#admin_site.register(Software)



admin.site.register(Software)

and my derek_site/admin.py is empty. Note that derek_site is my websites
root app, and I use url conf's and includes to import the other things,
i.e. a portfolio, personal website ... which live in separate apps.



Thanks,
Derek

-- 
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 http://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/5594CB23.6060704%40gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: Can't Start Project.

2015-07-01 Thread Steve Burrus
"As long as you're happy with the default file name." What exactly are you
referring to Bill? The database settings? Say how dpo you synch either
mysql or the postgres database server into django anyway? I really haven't
figured out yet how to do that I am afraid.



On Wed, Jul 1, 2015 at 5:51 PM, Bill Freeman  wrote:

> As long as you're happy with the default file name.
>
> On Wed, Jul 1, 2015 at 6:06 PM, Gergely Polonkai 
> wrote:
>
>> No, Django does that for you. You only have to worry about DB settings if
>> you want something else like MySQL or Postgres.
>> On 1 Jul 2015 23:40, "Bill Freeman"  wrote:
>>
>>> Yes.  syncdb should work, assuming that sqlite is available (I think
>>> that it's built in in all the python 3.x versions), and assuming that you
>>> have a correctly configured settings.py (startproject makes one, but you
>>> will still have things to enter, such as data base configuration info (like
>>> the file to use to back sqlite), or to edit, such as your timezone.
>>>
>>> On Wed, Jul 1, 2015 at 5:35 PM, Steve Burrus 
>>> wrote:
>>>
 no django was not installed so I did a quick "pip install django" and
 installed django 1.8.2 into my ins tance of virualenv and was [finally]
 able to connect to the django server. I assume trhat I can easily do the
 "python manage.py syncdb" to connect to the sqllite3 server?


 On Wed, Jul 1, 2015 at 3:58 PM, Bill Freeman  wrote:

> It sounds like django isn't on your path.  If you are running in a
> virtualenv, was django pip installed while running in that same 
> environment?
>
> On Wed, Jul 1, 2015 at 4:26 PM, Steve Burrus 
> wrote:
>
>> cd to the directory containing manage.py (the project directory),
>> then: "python manage.py runserver" Yeah I just now did exact;ly that but
>> STILL got the error message : "(steve)
>> C:\Users\SteveB\Desktop\steve\src>python manage.py runserver Traceback
>> (most recent call last):  File "manage.py", line 8, in  from
>> django.core.management import execute_from_command_line ImportError:
>> No module named django.core.management" I r enamed my newly created 
>> project
>> to "src".
>>
>>
>> On Wed, Jul 1, 2015 at 3:14 PM, Bill Freeman 
>> wrote:
>>
>>> cd to the directory containing manage.py (the project directory),
>>> then:
>>>
>>>   python manage.py runserver
>>>
>>> On Wed, Jul 1, 2015 at 2:04 PM, Steve Burrus <
>>> steveburru...@gmail.com> wrote:
>>>
 well I was able to create a new project earlier however I am now
 having trouble with starting the django ser ver. when I ran this 
 cpommand
 "python .\Scripts\django-admin.py runserver" I always get this error
 message : "python: can't open file '.\Scripts\django-admin.py': [Errno 
 2]
 No such file or directory". What's going on for me to get this error?

 On Wednesday, July 1, 2015 at 10:27:14 AM UTC-5, Steve Burrus wrote:
>
> I need some help please with  tryiong to start a new Django
> project. Here is the error message I always get when I try to do 
> this. can
> someone help me with this?
>
> "C:\Users\SteveB\Desktop\steve>.\Scripts\activate
> (steve) C:\Users\SteveB\Desktop\steve>python
> .\Scripts\django-admin.py startproject proj
> python: can't open file '.\Scripts\django-admin.py': [Errno 2] No
> such file or directory"
>
>
>
>  --
 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 http://groups.google.com/group/django-users.
 To view this discussion on the web visit
 https://groups.google.com/d/msgid/django-users/db741397-9c7c-4368-805c-07d60d6042bf%40googlegroups.com
 
 .
 For more options, visit https://groups.google.com/d/optout.

>>>
>>>  --
>>> You received this message because you are subscribed to a topic in
>>> the Google Groups "Django users" group.
>>> To unsubscribe from this topic, visit
>>> https://groups.google.com/d/topic/django-users/1wWP0wRstsU/unsubscribe
>>> .
>>> To unsubscribe from this group and all its topics, 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 http://groups.google.com/group/django-users.
>>> To view this discussion on the web visit

Re: runserver request body limitations

2015-07-01 Thread Justin Karneges
Hmm, possibly it could be that chunked encoded request bodies are not
supported:
http://osdir.com/ml/modwsgi/2010-09/msg00091.html

(As for how I managed to send 35K earlier, maybe it was some kind of
packetization luck. I'm unable to reproduce it now. The Django app keeps
seeing 0 bytes for a chunked upload).

On Wed, Jul 1, 2015 at 4:17 PM, Justin Karneges  wrote:

> It appears that once a certain size is exceeded, the request body is not
> received at all or truncated to 0.
>
> Here's a minimal view that echos the request body:
>
> def echo(request):
> return HttpResponse(request.body)
>
> Then I'm sending files like this:
>
> curl -v -X PUT --data-binary @file -H "Transfer-Encoding: chunked"
> http://localhost:8000/echo/
>
> The runserver output will display 0 bytes sent if I try to send a too big
> file:
>
> [01/Jul/2015 23:15:05]"PUT /echo/ HTTP/1.1" 200 0
>
> On Wed, Jul 1, 2015 at 2:10 PM, Avraham Serour  wrote:
>
> What do you mean by trouble, be more specific
>>
>> On Wed, Jul 1, 2015, 11:06 PM Justin Karneges  wrote:
>>
>>> Hi folks,
>>>
>>> I'm running into trouble doing a PUT with chunked encoded request body
>>> when the size exceeds around 35K. This is with runserver, so there's no
>>> Apache or wsgi or anything here.
>>>
>>> Are there any request body size limits in Django or specifically in
>>> runserver? Trying to isolate whether this issue is on the sender side or
>>> Django side.
>>>
>>> Thanks,
>>> Justin
>>>
>>>

-- 
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 http://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CAKFnGOTxERBp-Fxj%3DzVJKDyPoXDHNEXMs7hR9ef5cOEh8pxJ0A%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: runserver request body limitations

2015-07-01 Thread Justin Karneges
It appears that once a certain size is exceeded, the request body is not
received at all or truncated to 0.

Here's a minimal view that echos the request body:

def echo(request):
return HttpResponse(request.body)

Then I'm sending files like this:

curl -v -X PUT --data-binary @file -H "Transfer-Encoding: chunked"
http://localhost:8000/echo/

The runserver output will display 0 bytes sent if I try to send a too big
file:

[01/Jul/2015 23:15:05]"PUT /echo/ HTTP/1.1" 200 0

On Wed, Jul 1, 2015 at 2:10 PM, Avraham Serour  wrote:

What do you mean by trouble, be more specific
>
> On Wed, Jul 1, 2015, 11:06 PM Justin Karneges  wrote:
>
>> Hi folks,
>>
>> I'm running into trouble doing a PUT with chunked encoded request body
>> when the size exceeds around 35K. This is with runserver, so there's no
>> Apache or wsgi or anything here.
>>
>> Are there any request body size limits in Django or specifically in
>> runserver? Trying to isolate whether this issue is on the sender side or
>> Django side.
>>
>> Thanks,
>> Justin
>>
>>

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


Re: Can't Start Project.

2015-07-01 Thread Bill Freeman
As long as you're happy with the default file name.

On Wed, Jul 1, 2015 at 6:06 PM, Gergely Polonkai 
wrote:

> No, Django does that for you. You only have to worry about DB settings if
> you want something else like MySQL or Postgres.
> On 1 Jul 2015 23:40, "Bill Freeman"  wrote:
>
>> Yes.  syncdb should work, assuming that sqlite is available (I think that
>> it's built in in all the python 3.x versions), and assuming that you have a
>> correctly configured settings.py (startproject makes one, but you will
>> still have things to enter, such as data base configuration info (like the
>> file to use to back sqlite), or to edit, such as your timezone.
>>
>> On Wed, Jul 1, 2015 at 5:35 PM, Steve Burrus 
>> wrote:
>>
>>> no django was not installed so I did a quick "pip install django" and
>>> installed django 1.8.2 into my ins tance of virualenv and was [finally]
>>> able to connect to the django server. I assume trhat I can easily do the
>>> "python manage.py syncdb" to connect to the sqllite3 server?
>>>
>>>
>>> On Wed, Jul 1, 2015 at 3:58 PM, Bill Freeman  wrote:
>>>
 It sounds like django isn't on your path.  If you are running in a
 virtualenv, was django pip installed while running in that same 
 environment?

 On Wed, Jul 1, 2015 at 4:26 PM, Steve Burrus 
 wrote:

> cd to the directory containing manage.py (the project directory),
> then: "python manage.py runserver" Yeah I just now did exact;ly that but
> STILL got the error message : "(steve)
> C:\Users\SteveB\Desktop\steve\src>python manage.py runserver Traceback
> (most recent call last):  File "manage.py", line 8, in  from
> django.core.management import execute_from_command_line ImportError:
> No module named django.core.management" I r enamed my newly created 
> project
> to "src".
>
>
> On Wed, Jul 1, 2015 at 3:14 PM, Bill Freeman 
> wrote:
>
>> cd to the directory containing manage.py (the project directory),
>> then:
>>
>>   python manage.py runserver
>>
>> On Wed, Jul 1, 2015 at 2:04 PM, Steve Burrus > > wrote:
>>
>>> well I was able to create a new project earlier however I am now
>>> having trouble with starting the django ser ver. when I ran this 
>>> cpommand
>>> "python .\Scripts\django-admin.py runserver" I always get this error
>>> message : "python: can't open file '.\Scripts\django-admin.py': [Errno 
>>> 2]
>>> No such file or directory". What's going on for me to get this error?
>>>
>>> On Wednesday, July 1, 2015 at 10:27:14 AM UTC-5, Steve Burrus wrote:

 I need some help please with  tryiong to start a new Django
 project. Here is the error message I always get when I try to do this. 
 can
 someone help me with this?

 "C:\Users\SteveB\Desktop\steve>.\Scripts\activate
 (steve) C:\Users\SteveB\Desktop\steve>python
 .\Scripts\django-admin.py startproject proj
 python: can't open file '.\Scripts\django-admin.py': [Errno 2] No
 such file or directory"



  --
>>> 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 http://groups.google.com/group/django-users.
>>> To view this discussion on the web visit
>>> https://groups.google.com/d/msgid/django-users/db741397-9c7c-4368-805c-07d60d6042bf%40googlegroups.com
>>> 
>>> .
>>> For more options, visit https://groups.google.com/d/optout.
>>>
>>
>>  --
>> You received this message because you are subscribed to a topic in
>> the Google Groups "Django users" group.
>> To unsubscribe from this topic, visit
>> https://groups.google.com/d/topic/django-users/1wWP0wRstsU/unsubscribe
>> .
>> To unsubscribe from this group and all its topics, 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 http://groups.google.com/group/django-users.
>> To view this discussion on the web visit
>> https://groups.google.com/d/msgid/django-users/CAB%2BAj0uiQO5Ksjd-xkQ_kVr2SDvNEGM654x0mmEs1gCRW2jmCg%40mail.gmail.com
>> 
>> .
>>
>> For more options, visit https://groups.google.com/d/optout.
>>
>
>  --
> You received this message because you are subscribed t

Re: Can't Start Project.

2015-07-01 Thread Gergely Polonkai
No, Django does that for you. You only have to worry about DB settings if
you want something else like MySQL or Postgres.
On 1 Jul 2015 23:40, "Bill Freeman"  wrote:

> Yes.  syncdb should work, assuming that sqlite is available (I think that
> it's built in in all the python 3.x versions), and assuming that you have a
> correctly configured settings.py (startproject makes one, but you will
> still have things to enter, such as data base configuration info (like the
> file to use to back sqlite), or to edit, such as your timezone.
>
> On Wed, Jul 1, 2015 at 5:35 PM, Steve Burrus 
> wrote:
>
>> no django was not installed so I did a quick "pip install django" and
>> installed django 1.8.2 into my ins tance of virualenv and was [finally]
>> able to connect to the django server. I assume trhat I can easily do the
>> "python manage.py syncdb" to connect to the sqllite3 server?
>>
>>
>> On Wed, Jul 1, 2015 at 3:58 PM, Bill Freeman  wrote:
>>
>>> It sounds like django isn't on your path.  If you are running in a
>>> virtualenv, was django pip installed while running in that same environment?
>>>
>>> On Wed, Jul 1, 2015 at 4:26 PM, Steve Burrus 
>>> wrote:
>>>
 cd to the directory containing manage.py (the project directory), then:
 "python manage.py runserver" Yeah I just now did exact;ly that but STILL
 got the error message : "(steve) C:\Users\SteveB\Desktop\steve\src>python
 manage.py runserver Traceback (most recent call last):  File
 "manage.py", line 8, in  from django.core.management import
 execute_from_command_line ImportError: No module named
 django.core.management" I r enamed my newly created project to "src".


 On Wed, Jul 1, 2015 at 3:14 PM, Bill Freeman  wrote:

> cd to the directory containing manage.py (the project directory), then:
>
>   python manage.py runserver
>
> On Wed, Jul 1, 2015 at 2:04 PM, Steve Burrus 
> wrote:
>
>> well I was able to create a new project earlier however I am now
>> having trouble with starting the django ser ver. when I ran this cpommand
>> "python .\Scripts\django-admin.py runserver" I always get this error
>> message : "python: can't open file '.\Scripts\django-admin.py': [Errno 2]
>> No such file or directory". What's going on for me to get this error?
>>
>> On Wednesday, July 1, 2015 at 10:27:14 AM UTC-5, Steve Burrus wrote:
>>>
>>> I need some help please with  tryiong to start a new Django project.
>>> Here is the error message I always get when I try to do this. can 
>>> someone
>>> help me with this?
>>>
>>> "C:\Users\SteveB\Desktop\steve>.\Scripts\activate
>>> (steve) C:\Users\SteveB\Desktop\steve>python
>>> .\Scripts\django-admin.py startproject proj
>>> python: can't open file '.\Scripts\django-admin.py': [Errno 2] No
>>> such file or directory"
>>>
>>>
>>>
>>>  --
>> 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 http://groups.google.com/group/django-users.
>> To view this discussion on the web visit
>> https://groups.google.com/d/msgid/django-users/db741397-9c7c-4368-805c-07d60d6042bf%40googlegroups.com
>> 
>> .
>> For more options, visit https://groups.google.com/d/optout.
>>
>
>  --
> You received this message because you are subscribed to a topic in the
> Google Groups "Django users" group.
> To unsubscribe from this topic, visit
> https://groups.google.com/d/topic/django-users/1wWP0wRstsU/unsubscribe
> .
> To unsubscribe from this group and all its topics, 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 http://groups.google.com/group/django-users.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/django-users/CAB%2BAj0uiQO5Ksjd-xkQ_kVr2SDvNEGM654x0mmEs1gCRW2jmCg%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.
 Vis

Re: Can't Start Project.

2015-07-01 Thread Bill Freeman
Yes.  syncdb should work, assuming that sqlite is available (I think that
it's built in in all the python 3.x versions), and assuming that you have a
correctly configured settings.py (startproject makes one, but you will
still have things to enter, such as data base configuration info (like the
file to use to back sqlite), or to edit, such as your timezone.

On Wed, Jul 1, 2015 at 5:35 PM, Steve Burrus 
wrote:

> no django was not installed so I did a quick "pip install django" and
> installed django 1.8.2 into my ins tance of virualenv and was [finally]
> able to connect to the django server. I assume trhat I can easily do the
> "python manage.py syncdb" to connect to the sqllite3 server?
>
>
> On Wed, Jul 1, 2015 at 3:58 PM, Bill Freeman  wrote:
>
>> It sounds like django isn't on your path.  If you are running in a
>> virtualenv, was django pip installed while running in that same environment?
>>
>> On Wed, Jul 1, 2015 at 4:26 PM, Steve Burrus 
>> wrote:
>>
>>> cd to the directory containing manage.py (the project directory), then:
>>> "python manage.py runserver" Yeah I just now did exact;ly that but STILL
>>> got the error message : "(steve) C:\Users\SteveB\Desktop\steve\src>python
>>> manage.py runserver Traceback (most recent call last):  File
>>> "manage.py", line 8, in  from django.core.management import
>>> execute_from_command_line ImportError: No module named
>>> django.core.management" I r enamed my newly created project to "src".
>>>
>>>
>>> On Wed, Jul 1, 2015 at 3:14 PM, Bill Freeman  wrote:
>>>
 cd to the directory containing manage.py (the project directory), then:

   python manage.py runserver

 On Wed, Jul 1, 2015 at 2:04 PM, Steve Burrus 
 wrote:

> well I was able to create a new project earlier however I am now
> having trouble with starting the django ser ver. when I ran this cpommand
> "python .\Scripts\django-admin.py runserver" I always get this error
> message : "python: can't open file '.\Scripts\django-admin.py': [Errno 2]
> No such file or directory". What's going on for me to get this error?
>
> On Wednesday, July 1, 2015 at 10:27:14 AM UTC-5, Steve Burrus wrote:
>>
>> I need some help please with  tryiong to start a new Django project.
>> Here is the error message I always get when I try to do this. can someone
>> help me with this?
>>
>> "C:\Users\SteveB\Desktop\steve>.\Scripts\activate
>> (steve) C:\Users\SteveB\Desktop\steve>python
>> .\Scripts\django-admin.py startproject proj
>> python: can't open file '.\Scripts\django-admin.py': [Errno 2] No
>> such file or directory"
>>
>>
>>
>>  --
> 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 http://groups.google.com/group/django-users.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/django-users/db741397-9c7c-4368-805c-07d60d6042bf%40googlegroups.com
> 
> .
> For more options, visit https://groups.google.com/d/optout.
>

  --
 You received this message because you are subscribed to a topic in the
 Google Groups "Django users" group.
 To unsubscribe from this topic, visit
 https://groups.google.com/d/topic/django-users/1wWP0wRstsU/unsubscribe.
 To unsubscribe from this group and all its topics, 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 http://groups.google.com/group/django-users.
 To view this discussion on the web visit
 https://groups.google.com/d/msgid/django-users/CAB%2BAj0uiQO5Ksjd-xkQ_kVr2SDvNEGM654x0mmEs1gCRW2jmCg%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 http://groups.google.com/group/django-users.
>>> To view this discussion on the web visit
>>> https://groups.google.com/d/msgid/django-users/CABcoaSAOXFYq8HQYsCw48rvGjBSEv29XgoFcARKATfx_My_eWQ%40mail.gmail.com
>>> 

Re: Can't Start Project.

2015-07-01 Thread Steve Burrus
no django was not installed so I did a quick "pip install django" and
installed django 1.8.2 into my ins tance of virualenv and was [finally]
able to connect to the django server. I assume trhat I can easily do the
"python manage.py syncdb" to connect to the sqllite3 server?


On Wed, Jul 1, 2015 at 3:58 PM, Bill Freeman  wrote:

> It sounds like django isn't on your path.  If you are running in a
> virtualenv, was django pip installed while running in that same environment?
>
> On Wed, Jul 1, 2015 at 4:26 PM, Steve Burrus 
> wrote:
>
>> cd to the directory containing manage.py (the project directory), then:
>> "python manage.py runserver" Yeah I just now did exact;ly that but STILL
>> got the error message : "(steve) C:\Users\SteveB\Desktop\steve\src>python
>> manage.py runserver Traceback (most recent call last):  File
>> "manage.py", line 8, in  from django.core.management import
>> execute_from_command_line ImportError: No module named
>> django.core.management" I r enamed my newly created project to "src".
>>
>>
>> On Wed, Jul 1, 2015 at 3:14 PM, Bill Freeman  wrote:
>>
>>> cd to the directory containing manage.py (the project directory), then:
>>>
>>>   python manage.py runserver
>>>
>>> On Wed, Jul 1, 2015 at 2:04 PM, Steve Burrus 
>>> wrote:
>>>
 well I was able to create a new project earlier however I am now having
 trouble with starting the django ser ver. when I ran this cpommand "python
 .\Scripts\django-admin.py runserver" I always get this error message :
 "python: can't open file '.\Scripts\django-admin.py': [Errno 2] No such
 file or directory". What's going on for me to get this error?

 On Wednesday, July 1, 2015 at 10:27:14 AM UTC-5, Steve Burrus wrote:
>
> I need some help please with  tryiong to start a new Django project.
> Here is the error message I always get when I try to do this. can someone
> help me with this?
>
> "C:\Users\SteveB\Desktop\steve>.\Scripts\activate
> (steve) C:\Users\SteveB\Desktop\steve>python .\Scripts\django-admin.py
> startproject proj
> python: can't open file '.\Scripts\django-admin.py': [Errno 2] No such
> file or directory"
>
>
>
>  --
 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 http://groups.google.com/group/django-users.
 To view this discussion on the web visit
 https://groups.google.com/d/msgid/django-users/db741397-9c7c-4368-805c-07d60d6042bf%40googlegroups.com
 
 .
 For more options, visit https://groups.google.com/d/optout.

>>>
>>>  --
>>> You received this message because you are subscribed to a topic in the
>>> Google Groups "Django users" group.
>>> To unsubscribe from this topic, visit
>>> https://groups.google.com/d/topic/django-users/1wWP0wRstsU/unsubscribe.
>>> To unsubscribe from this group and all its topics, 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 http://groups.google.com/group/django-users.
>>> To view this discussion on the web visit
>>> https://groups.google.com/d/msgid/django-users/CAB%2BAj0uiQO5Ksjd-xkQ_kVr2SDvNEGM654x0mmEs1gCRW2jmCg%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 http://groups.google.com/group/django-users.
>> To view this discussion on the web visit
>> https://groups.google.com/d/msgid/django-users/CABcoaSAOXFYq8HQYsCw48rvGjBSEv29XgoFcARKATfx_My_eWQ%40mail.gmail.com
>> 
>> .
>>
>> For more options, visit https://groups.google.com/d/optout.
>>
>
>  --
> You received this message because you are subscribed to a topic in the
> Google Groups "Django users" group.
> To unsubscribe from this topic, visit
> https://groups.google.com/d/topic/django-users/1wWP0wRstsU/unsubscribe.
> To unsubscribe from this group and all its topics, send an email to
> django-users+unsubscr...@googlegroups.c

Re: runserver request body limitations

2015-07-01 Thread Avraham Serour
What do you mean by trouble, be more specific

On Wed, Jul 1, 2015, 11:06 PM Justin Karneges  wrote:

> Hi folks,
>
> I'm running into trouble doing a PUT with chunked encoded request body
> when the size exceeds around 35K. This is with runserver, so there's no
> Apache or wsgi or anything here.
>
> Are there any request body size limits in Django or specifically in
> runserver? Trying to isolate whether this issue is on the sender side or
> Django side.
>
> Thanks,
> Justin
>
> --
> 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 http://groups.google.com/group/django-users.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/django-users/CAKFnGOS9GpimmhOkFKyyS9%3DOG65ofUibdqhwBso%2BR3q94Uvn8w%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 http://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CAFWa6tKaaNL-duq3gegLaFmFroyfcHAMV-LH4AL_bxZEKFfaaA%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: Can't Start Project.

2015-07-01 Thread Bill Freeman
It sounds like django isn't on your path.  If you are running in a
virtualenv, was django pip installed while running in that same environment?

On Wed, Jul 1, 2015 at 4:26 PM, Steve Burrus 
wrote:

> cd to the directory containing manage.py (the project directory), then:
> "python manage.py runserver" Yeah I just now did exact;ly that but STILL
> got the error message : "(steve) C:\Users\SteveB\Desktop\steve\src>python
> manage.py runserver Traceback (most recent call last):  File "manage.py",
> line 8, in  from django.core.management import
> execute_from_command_line ImportError: No module named
> django.core.management" I r enamed my newly created project to "src".
>
>
> On Wed, Jul 1, 2015 at 3:14 PM, Bill Freeman  wrote:
>
>> cd to the directory containing manage.py (the project directory), then:
>>
>>   python manage.py runserver
>>
>> On Wed, Jul 1, 2015 at 2:04 PM, Steve Burrus 
>> wrote:
>>
>>> well I was able to create a new project earlier however I am now having
>>> trouble with starting the django ser ver. when I ran this cpommand "python
>>> .\Scripts\django-admin.py runserver" I always get this error message :
>>> "python: can't open file '.\Scripts\django-admin.py': [Errno 2] No such
>>> file or directory". What's going on for me to get this error?
>>>
>>> On Wednesday, July 1, 2015 at 10:27:14 AM UTC-5, Steve Burrus wrote:

 I need some help please with  tryiong to start a new Django project.
 Here is the error message I always get when I try to do this. can someone
 help me with this?

 "C:\Users\SteveB\Desktop\steve>.\Scripts\activate
 (steve) C:\Users\SteveB\Desktop\steve>python .\Scripts\django-admin.py
 startproject proj
 python: can't open file '.\Scripts\django-admin.py': [Errno 2] No such
 file or directory"



  --
>>> 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 http://groups.google.com/group/django-users.
>>> To view this discussion on the web visit
>>> https://groups.google.com/d/msgid/django-users/db741397-9c7c-4368-805c-07d60d6042bf%40googlegroups.com
>>> 
>>> .
>>> For more options, visit https://groups.google.com/d/optout.
>>>
>>
>>  --
>> You received this message because you are subscribed to a topic in the
>> Google Groups "Django users" group.
>> To unsubscribe from this topic, visit
>> https://groups.google.com/d/topic/django-users/1wWP0wRstsU/unsubscribe.
>> To unsubscribe from this group and all its topics, 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 http://groups.google.com/group/django-users.
>> To view this discussion on the web visit
>> https://groups.google.com/d/msgid/django-users/CAB%2BAj0uiQO5Ksjd-xkQ_kVr2SDvNEGM654x0mmEs1gCRW2jmCg%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 http://groups.google.com/group/django-users.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/django-users/CABcoaSAOXFYq8HQYsCw48rvGjBSEv29XgoFcARKATfx_My_eWQ%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 http://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CAB%2BAj0t0uoOfsbBdZ-5x0vbi4nzoQrCF6RPcUvTha3-61R6mMw%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: Can't Start Project.

2015-07-01 Thread Steve Burrus
cd to the directory containing manage.py (the project directory), then:
"python manage.py runserver" Yeah I just now did exact;ly that but STILL
got the error message : "(steve) C:\Users\SteveB\Desktop\steve\src>python
manage.py runserver Traceback (most recent call last):  File "manage.py",
line 8, in  from django.core.management import
execute_from_command_line ImportError: No module named
django.core.management" I r enamed my newly created project to "src".


On Wed, Jul 1, 2015 at 3:14 PM, Bill Freeman  wrote:

> cd to the directory containing manage.py (the project directory), then:
>
>   python manage.py runserver
>
> On Wed, Jul 1, 2015 at 2:04 PM, Steve Burrus 
> wrote:
>
>> well I was able to create a new project earlier however I am now having
>> trouble with starting the django ser ver. when I ran this cpommand "python
>> .\Scripts\django-admin.py runserver" I always get this error message :
>> "python: can't open file '.\Scripts\django-admin.py': [Errno 2] No such
>> file or directory". What's going on for me to get this error?
>>
>> On Wednesday, July 1, 2015 at 10:27:14 AM UTC-5, Steve Burrus wrote:
>>>
>>> I need some help please with  tryiong to start a new Django project.
>>> Here is the error message I always get when I try to do this. can someone
>>> help me with this?
>>>
>>> "C:\Users\SteveB\Desktop\steve>.\Scripts\activate
>>> (steve) C:\Users\SteveB\Desktop\steve>python .\Scripts\django-admin.py
>>> startproject proj
>>> python: can't open file '.\Scripts\django-admin.py': [Errno 2] No such
>>> file or directory"
>>>
>>>
>>>
>>>  --
>> 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 http://groups.google.com/group/django-users.
>> To view this discussion on the web visit
>> https://groups.google.com/d/msgid/django-users/db741397-9c7c-4368-805c-07d60d6042bf%40googlegroups.com
>> 
>> .
>> For more options, visit https://groups.google.com/d/optout.
>>
>
>  --
> You received this message because you are subscribed to a topic in the
> Google Groups "Django users" group.
> To unsubscribe from this topic, visit
> https://groups.google.com/d/topic/django-users/1wWP0wRstsU/unsubscribe.
> To unsubscribe from this group and all its topics, 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 http://groups.google.com/group/django-users.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/django-users/CAB%2BAj0uiQO5Ksjd-xkQ_kVr2SDvNEGM654x0mmEs1gCRW2jmCg%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 http://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CABcoaSAOXFYq8HQYsCw48rvGjBSEv29XgoFcARKATfx_My_eWQ%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: Can't Start Project.

2015-07-01 Thread Bill Freeman
cd to the directory containing manage.py (the project directory), then:

  python manage.py runserver

On Wed, Jul 1, 2015 at 2:04 PM, Steve Burrus 
wrote:

> well I was able to create a new project earlier however I am now having
> trouble with starting the django ser ver. when I ran this cpommand "python
> .\Scripts\django-admin.py runserver" I always get this error message :
> "python: can't open file '.\Scripts\django-admin.py': [Errno 2] No such
> file or directory". What's going on for me to get this error?
>
> On Wednesday, July 1, 2015 at 10:27:14 AM UTC-5, Steve Burrus wrote:
>>
>> I need some help please with  tryiong to start a new Django project. Here
>> is the error message I always get when I try to do this. can someone help
>> me with this?
>>
>> "C:\Users\SteveB\Desktop\steve>.\Scripts\activate
>> (steve) C:\Users\SteveB\Desktop\steve>python .\Scripts\django-admin.py
>> startproject proj
>> python: can't open file '.\Scripts\django-admin.py': [Errno 2] No such
>> file or directory"
>>
>>
>>
>>  --
> 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 http://groups.google.com/group/django-users.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/django-users/db741397-9c7c-4368-805c-07d60d6042bf%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 http://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CAB%2BAj0uiQO5Ksjd-xkQ_kVr2SDvNEGM654x0mmEs1gCRW2jmCg%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


runserver request body limitations

2015-07-01 Thread Justin Karneges
Hi folks,

I'm running into trouble doing a PUT with chunked encoded request body when
the size exceeds around 35K. This is with runserver, so there's no Apache
or wsgi or anything here.

Are there any request body size limits in Django or specifically in
runserver? Trying to isolate whether this issue is on the sender side or
Django side.

Thanks,
Justin

-- 
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 http://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CAKFnGOS9GpimmhOkFKyyS9%3DOG65ofUibdqhwBso%2BR3q94Uvn8w%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: Can't Start Project.

2015-07-01 Thread Steve Burrus
well I was able to create a new project earlier however I am now having 
trouble with starting the django ser ver. when I ran this cpommand "python 
.\Scripts\django-admin.py runserver" I always get this error message : 
"python: can't open file '.\Scripts\django-admin.py': [Errno 2] No such 
file or directory". What's going on for me to get this error?

On Wednesday, July 1, 2015 at 10:27:14 AM UTC-5, Steve Burrus wrote:
>
> I need some help please with  tryiong to start a new Django project. Here 
> is the error message I always get when I try to do this. can someone help 
> me with this?
>   
> "C:\Users\SteveB\Desktop\steve>.\Scripts\activate
> (steve) C:\Users\SteveB\Desktop\steve>python .\Scripts\django-admin.py 
> startproject proj
> python: can't open file '.\Scripts\django-admin.py': [Errno 2] No such 
> file or directory"
>
>
>
>

-- 
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 http://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/db741397-9c7c-4368-805c-07d60d6042bf%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Django model for non web applications

2015-07-01 Thread Jeff Fritz
I'm fairly new to Django and making my way through the tutorial.

Knowing what I've learned so far, I'd like to explore using 
django.db.models.Model in a non-web application. I'd like to take the 
entire model layer and use it for database access in a standalone, 
multithreaded python 3.4 application. It is not a web application. I would 
like to be able to take advantage of the migration capabilities in 
manage.py.

Questions:

1. Is it as simple as adding `from djanago.db import models`? Would this 
bring in any unnecessary django packages/modules, considering I will not be 
developing a web application, not using views, templating, etc?

2. Is the django model layer thread safe? Specifically, when using sqlite3 
as a back end?

3. Are there other clean ORM/database model layer frameworks/packages that 
I should consider for python 3.4?

Thanks very much for any assistance,
Jeff

-- 
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 http://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/7609b56f-1452-43d0-86c4-f6eab427e0dc%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Can't Start Project.

2015-07-01 Thread Steve Burrus
I need some help please with  tryiong to start a new Django project. Here 
is the error message I always get when I try to do this. can someone help 
me with this?
  
"C:\Users\SteveB\Desktop\steve>.\Scripts\activate
(steve) C:\Users\SteveB\Desktop\steve>python .\Scripts\django-admin.py 
startproject proj
python: can't open file '.\Scripts\django-admin.py': [Errno 2] No such file 
or directory"



-- 
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 http://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/77455e4f-a8de-42c2-93fa-8c1f04a74ef4%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Encode korean data of queryset with serialize 'json' got problem

2015-07-01 Thread 최규범
i'm started django and python this week,
i've got some problem when i encode queryset to json string.
i tried serializers.serialize('xml', queryset),
it returns my korean data with no problem
but, 
serializers.serialize('jsonl', queryset) returns korean string to unicode 
string ( ex: \uaca8\uc6b8\ud559\uae30 )
i cant find any ways to fix this problem
plz help...

-- 
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 http://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/d6d9df10-e481-48a7-9ed2-5c31e34be186%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: want some suggestion to learn elastic search

2015-07-01 Thread Edgar Gabaldi
Use the django-haystack[0]. He's a wrapper for some search engines
(including elastic search). it's very simple to use. The getting start
tutorial[1] is very simple too.


[0] http://haystacksearch.org/
[1]http://django-haystack.readthedocs.org/en/v2.4.0/tutorial.html

On Wed, Jul 1, 2015 at 8:37 AM, Code Dish  wrote:

> Hello all,
>
> Can you guys , suggest me what the basic things reguired to learn
> elastic search for django project for learning purpose.
> please reply...
>
> --
> 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 http://groups.google.com/group/django-users.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/django-users/5bf05d6d-b3d4-4e4a-8e75-6899aa6c10c2%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 http://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CAGjPPHmjyXS9orLZhriO60isFvFD_HzkSvM3o7MGy2u2734cHQ%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: Diable basic auth on some pages

2015-07-01 Thread Cherie Pun
I see. Thanks for the replies, really appreciate your help :)

Cheers,
Cherie

On Wednesday, July 1, 2015 at 1:47:26 PM UTC+1, monoBOT monoBOT wrote:
>
> No, if that permission is applied to the whole application.
>
> But you can aply the permission per view ... just delete that 
> configuration in the settings file and manually apply on the views you want 
> to.
>
> 2015-07-01 11:03 GMT+01:00 Cherie Pun >:
>
>> Yes it is, would it be possible to disable it for a particular page?
>>
>> Cheers,
>> Cherie
>>
>> On Wednesday, July 1, 2015 at 10:15:57 AM UTC+1, monoBOT monoBOT wrote:
>>
>>>
>>> 2015-07-01 8:51 GMT+01:00 Cherie Pun :
>>>

 We are using 'deploy.middleware.basicauth.BasicAuthMiddleware' right 
 now. If I remove that line, I will be able to access the api page. However 
 if it's included, when I access the api page, even after I have typed in 
 the username and password, the api page will show that I am not 
 authenticated to view the page. I am using django_rest_framework by the 
 way, maybe it's some sort of restriction on their side?

>>>
>>> ​Go check the settings.py to see if you have a permission setting for 
>>> the whole application.
>>>
>>>
>>>
>>> -- 
>>> *monoBOT*
>>> Visite mi sitio(Visit my site): monobotsoft.es/blog/
>>>  
>>  -- 
>> 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 http://groups.google.com/group/django-users.
>> To view this discussion on the web visit 
>> https://groups.google.com/d/msgid/django-users/cef52288-e081-4243-b9ec-a385b9363ec8%40googlegroups.com
>>  
>> 
>> .
>>
>> For more options, visit https://groups.google.com/d/optout.
>>
>
>
>
> -- 
> *monoBOT*
> Visite mi sitio(Visit my site): monobotsoft.es/blog/
>  

-- 
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 http://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/42fd5c8a-62e7-4f5e-b704-e9cafaeb2424%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Diable basic auth on some pages

2015-07-01 Thread monoBOT
No, if that permission is applied to the whole application.

But you can aply the permission per view ... just delete that configuration
in the settings file and manually apply on the views you want to.

2015-07-01 11:03 GMT+01:00 Cherie Pun :

> Yes it is, would it be possible to disable it for a particular page?
>
> Cheers,
> Cherie
>
> On Wednesday, July 1, 2015 at 10:15:57 AM UTC+1, monoBOT monoBOT wrote:
>
>>
>> 2015-07-01 8:51 GMT+01:00 Cherie Pun :
>>
>>>
>>> We are using 'deploy.middleware.basicauth.BasicAuthMiddleware' right
>>> now. If I remove that line, I will be able to access the api page. However
>>> if it's included, when I access the api page, even after I have typed in
>>> the username and password, the api page will show that I am not
>>> authenticated to view the page. I am using django_rest_framework by the
>>> way, maybe it's some sort of restriction on their side?
>>>
>>
>> ​Go check the settings.py to see if you have a permission setting for the
>> whole application.
>>
>>
>>
>> --
>> *monoBOT*
>> Visite mi sitio(Visit my site): monobotsoft.es/blog/
>>
>  --
> 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 http://groups.google.com/group/django-users.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/django-users/cef52288-e081-4243-b9ec-a385b9363ec8%40googlegroups.com
> 
> .
>
> For more options, visit https://groups.google.com/d/optout.
>



-- 
*monoBOT*
Visite mi sitio(Visit my site): monobotsoft.es/blog/

-- 
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 http://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CA%2BxOsGAE1sZPpoN3spTZRZof4XHz4f1AWAzOyEtNwDU%3Dof3K8w%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: Django urls and Angular ui router

2015-07-01 Thread Filipe Ximenes
You can eigther save your partial templates inside your "static" folder
(and fetch it just like any static document), or if you are doing some
"django processing" before sending the partial, you will need to write
individual views for each one of then.

On Wed, Jul 1, 2015 at 5:06 AM, ABEL D  wrote:

> I am a front end developer in django and angularjs app.  I am using
> templates and partials  in angular. Do I need to define each and every
> templates url in django to get its file from the server. If not how to do
> this in Django?
>
> --
> 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 http://groups.google.com/group/django-users.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/django-users/246b0968-f6ef-4eea-acd2-ab3393b94304%40googlegroups.com
> 
> .
> For more options, visit https://groups.google.com/d/optout.
>



-- 


*Filipe Ximenes*+55 (81) 8245-9204

*Vinta Software Studio*http://www.vinta.com.br

-- 
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 http://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CAA-QWB3R-SUN%2BtCdfizf8w5GVfi3OJU2rpzfupn%3D2eBh0sMAqA%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


want some suggestion to learn elastic search

2015-07-01 Thread Code Dish
Hello all,

Can you guys , suggest me what the basic things reguired to learn 
elastic search for django project for learning purpose.
please reply...

-- 
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 http://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/5bf05d6d-b3d4-4e4a-8e75-6899aa6c10c2%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Django urls and Angular ui router

2015-07-01 Thread ABEL D
I am a front end developer in django and angularjs app.  I am using 
templates and partials  in angular. Do I need to define each and every 
templates url in django to get its file from the server. If not how to do 
this in Django?

-- 
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 http://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/246b0968-f6ef-4eea-acd2-ab3393b94304%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Diable basic auth on some pages

2015-07-01 Thread Cherie Pun
Yes it is, would it be possible to disable it for a particular page?

Cheers,
Cherie

On Wednesday, July 1, 2015 at 10:15:57 AM UTC+1, monoBOT monoBOT wrote:
>
>
> 2015-07-01 8:51 GMT+01:00 Cherie Pun >:
>
>>
>> We are using 'deploy.middleware.basicauth.BasicAuthMiddleware' right now. 
>> If I remove that line, I will be able to access the api page. However if 
>> it's included, when I access the api page, even after I have typed in the 
>> username and password, the api page will show that I am not authenticated 
>> to view the page. I am using django_rest_framework by the way, maybe it's 
>> some sort of restriction on their side?
>>
>
> ​Go check the settings.py to see if you have a permission setting for the 
> whole application.
>
>
>
> -- 
> *monoBOT*
> Visite mi sitio(Visit my site): monobotsoft.es/blog/
>  

-- 
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 http://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/cef52288-e081-4243-b9ec-a385b9363ec8%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Diable basic auth on some pages

2015-07-01 Thread monoBOT
2015-07-01 8:51 GMT+01:00 Cherie Pun :

>
> We are using 'deploy.middleware.basicauth.BasicAuthMiddleware' right now.
> If I remove that line, I will be able to access the api page. However if
> it's included, when I access the api page, even after I have typed in the
> username and password, the api page will show that I am not authenticated
> to view the page. I am using django_rest_framework by the way, maybe it's
> some sort of restriction on their side?
>

​Go check the settings.py to see if you have a permission setting for the
whole application.



-- 
*monoBOT*
Visite mi sitio(Visit my site): monobotsoft.es/blog/

-- 
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 http://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CA%2BxOsGDQGKnBxYQ2SRZGv82wXT_fZd21RYJeV5y4Snh-NRkR3g%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: Diable basic auth on some pages

2015-07-01 Thread Cherie Pun
Hi,

We are using 'deploy.middleware.basicauth.BasicAuthMiddleware' right now. 
If I remove that line, I will be able to access the api page. However if 
it's included, when I access the api page, even after I have typed in the 
username and password, the api page will show that I am not authenticated 
to view the page. I am using django_rest_framework by the way, maybe it's 
some sort of restriction on their side?

Cheers,
Cherie

On Tuesday, 30 June 2015 18:12:30 UTC+1, Alex Heyden wrote:
>
> Cherie,
>
> By default, there are no authentication controls in Django. Barring some 
> custom middleware, authentication checks are performed within the views 
> themselves or through something like the @login_required or 
> @user_passes_test decorators. Are you certain that authentication is what's 
> blocking your requests?
>
> On Tue, Jun 30, 2015 at 9:43 AM, Cherie Pun  > wrote:
>
>> Hi,
>>
>> In the dev version of the website, we are using basic auth to limit 
>> access. However, we are currently developing an api for the website and I 
>> would like to use the api without going through the basic auth. Is it 
>> possible to disable basic auth for all the api urls?
>>
>> Cheers,
>> Cherie
>>
>> -- 
>> 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 http://groups.google.com/group/django-users.
>> To view this discussion on the web visit 
>> https://groups.google.com/d/msgid/django-users/0d9a681e-74c4-4b74-9648-e0e6c74beeb6%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 http://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/4381311c-34c9-42ca-9069-30853f5a1fde%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.