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)

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,

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 chun

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 "Tr

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. syncd

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 ass

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 fil

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 a

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. >

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 runser

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

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

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 i

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

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 applicat

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 startproje

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\

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 A

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

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

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

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 sto

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 Go

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 remo

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 a

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 authentica