Re: Create models using raw SQL queries

2019-03-27 Thread cameron hochbrg
Thank you for your response. I am aware that django has for purpose to hide the SQL. the reason why I wanted to use django is that I had used it before and I didn't want to have to learn a new framework if possible. Le mer. 27 mars 2019 à 21:33, Simon A a écrit : > hi Cameron, as Eric

Create models using raw SQL queries

2019-03-26 Thread cameron hochbrg
hello, for a project for a database class, we wanted to create a web app using django. However, our teacher wants us to use raw SQL queries for everything involving the database. As such I was wondering if it was possible to create mdoels using raw SQL queries. thank you in advance -- You re

Re: How do you recommend to use Hebrew gender-related translations?

2016-12-22 Thread Fergus Cameron
I personally try to use language agnostic message IDs and translate everything (i.e. including English). Your idea of appending the gender is along the same lines and seems logical. On 22/12/2016, Uri Even-Chen wrote: > Hi Django users, > > How do you recommend to use Hebrew gender-related trans

Re: changes are not being published, help!

2015-11-27 Thread Fergus Cameron
I expect a psychic will be required in the early stages. You'll need to try and, at least, make a connection between your website and the subject of this group (i.e. django). But, in truth, I don't expect it will help; I think you probably need to contact whomever built your website for you. On

Re: how upload and display image on page using Django

2015-11-22 Thread Cameron Alexander
Hey Mayur, I would take a look at the documentation for ImageField . On Friday, November 20, 2015 at 1:45:31 PM UTC-6, Mayur Kakade wrote: > > I am new in Django I have some problem in django ... I am trying to

Re: malicious requests?

2014-12-22 Thread Fergus Cameron
On 22/12/2014, Alasdair Nicol wrote: > [ ... ] > > In Django 1.7, the trailing dot is stripped when performing host > > validation, thus an entry with a trailing dot isn’t required. How odd, since the canonical representation would be to add a dot when one is missing rather than removing it whe

Re: Unable to import 3 modules when running tests

2014-10-03 Thread Mike Cameron
Also, I have re-created my virtualenv from scratch, but the error persists. -- 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

Unable to import 3 modules when running tests

2014-10-02 Thread Mike Cameron
I'm doing python manage.py test, but always receive one of the following ImportError messages. ImportError: No module named 'expressions_regress'ImportError: No module named 'aggregation'ImportError: No module named 'migrations' I have ensured my virtual environment is enabled. I'm on Django

Split File Storage

2011-12-27 Thread Cameron
files between servers and control when certain servers are full and can no longer write to etc. Any advice would be much appreciated. Cheers. - Cameron -- You received this message because you are subscribed to the Google Groups "Django users" group. To view this discussion on the

Re: Best approach to handling different types of Users

2011-08-20 Thread Cameron
> I hear this a lot that "things will break" if you subclass User. However, I > haven't seen anyone share a concrete example of *how* things go wrong. > > Anyone got a good example to scare the children with? > > Malcolm Yeh, I've heard this quite a bit as well. An example of a scenario this real

Best approach to handling different types of Users

2011-08-18 Thread Cameron
Hi, I'm wondering if anyone can help shed some light on the best approach is too creating different Users. I'm trying to make a online shop, that features two types of Users, "Customers" and "Merchants". The power of each Users vary greatly, Customers can buy items from Merchants and Merchants can

Re: SystemError from django.conf.settings

2011-05-30 Thread Cameron
equivalent for gunicorn is not as clean. - Cameron On May 30, 2:15 pm, "Roberto De Ioris" wrote: > > As suggested on #django yesterday I swapped the site over to manage.py > > runserver and also tried gunicorn and they are both stable so it looks > > like a proble

Re: SystemError from django.conf.settings

2011-05-29 Thread Cameron
As suggested on #django yesterday I swapped the site over to manage.py runserver and also tried gunicorn and they are both stable so it looks like a problem with uwsgi. Gunicorn is also surprisingly fast, beating uwsgi on a httperf test to one of the heavier pages on the site. - Cameron On 29

SystemError from django.conf.settings

2011-05-29 Thread Cameron
So I have this stack trace on my production server. I can't reproduce it locally and it doesn't occur with an older version of the same site deployed on the same server. Traceback (most recent call last): File "./dependencies/django/core/handlers/wsgi.py", line 222, in __call__ from django.c

Re: Intermediary Triple Join Table?

2008-04-28 Thread Cameron Hutchison
phloopy wrote: >I'm building a system that manages sports leagues, hockey is the first >one I'm worried about but I intend it to be flexible enough for others >as well. There are three objects that are involved in this question: >Person: represents anybody involved in the league, has many roles

Re: Will Complex URLs Slow Things Down?

2006-05-26 Thread Cameron Kenneth Knight
3. "(?i)pattern" matches "PATTERN" --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-users@googlegroups.com To unsubscribe from this group, send email