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)
"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,
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
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
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
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
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
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
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.
>
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
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
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
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
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
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
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
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\
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
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
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
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
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
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
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
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
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
26 matches
Mail list logo