Re: satchmo and django-admin-tools

2012-07-16 Thread Avraham Serour
I thought they extended the templates instead of trying to replace everything do you know which templates would I have to redefine? everything I find in both? On Mon, Jul 16, 2012 at 6:09 PM, Tomas Neme wrote: > Yes, you'll need to get your hands dirty, and merge the two admin > templates, sinc

Re: Excluding items from a queryset

2012-07-16 Thread Avraham Serour
isn't it possible to define this in the query? to return only non empty categories? or return categories where it has more than 1 member? On Mon, Jul 16, 2012 at 2:38 PM, Sithembewena Lloyd Dube wrote: > Hi everyone, > > I have a queryset of categories and would like to exclude categories with >

Re: satchmo and django-admin-tools

2012-07-16 Thread Avraham Serour
thanks for sharing, I'll try to understand it. where should I put this file? inside localsite? what admin template are you talking about? the admin tools or the plain admin? I thought of using the admin tools templates and building from that, but all I got was noReverseMatch erros, looks like th

Re: I can not install Django on Windows7

2012-07-18 Thread Avraham Serour
try using pip: pip install django On Wed, Jul 18, 2012 at 3:50 PM, Владислав Иванов wrote: > when I run the installation of Django python setup.py install - comes at > the end of an error that can not be put Django in C: \ Python27 \ Lib \ > site-packages > > -- > You received this message becau

Re: Django performance (cpython vs pypy)

2012-10-04 Thread Avraham Serour
impressive gain when using pypy, still django seems to have the slowest template engine it would be interesting to see memory usage also, not only speed btw does anyone uses pypy in production yet? care to share some thoughts? On Thu, Oct 4, 2012 at 10:02 AM, Moonlight wrote: > It is interesting

Re: Translation outside the broswer

2012-10-05 Thread Avraham Serour
I believe that when you detect the language you could store in the user profile the selected language (either it was automatic or manual), when sending your email just check that On Fri, Oct 5, 2012 at 11:12 AM, Bastian wrote: > Hi, > > I understand quite well how translations and i18n work insi

Re: Best practices for open sourcing a Django project?

2012-10-14 Thread Avraham Serour
I think you should include the config file, but with example parameters and comments, point out in the readme that there are some basic configuration to be done On Sun, Oct 14, 2012 at 9:59 PM, Cal Leeming [Simplicity Media Ltd] < cal.leem...@simplicitymedialtd.co.uk> wrote: > You could just incl

Re: Django Troubleshooting

2012-10-19 Thread Avraham Serour
you should use pip to install, why are you installing from source? if you are worried about filling your python installation with lots of stuff you should use virtualenv On Fri, Oct 19, 2012 at 6:15 AM, Lachlan Musicman wrote: > On Fri, Oct 19, 2012 at 4:07 PM, Sun Simon wrote: > > https://www.

Re: Bulk db insert with a file through admin form

2012-12-04 Thread Avraham Serour
I also have a case where I would need to bulk add items from a file, the client receives an excel file with products (up to a couple of hundreds). I still haven't implemented nothing yet as the feature doesn't have priority, in any case I thought adding a file upload option on the admin, or maybe a

Re: problem with timeout

2012-12-17 Thread Avraham Serour
you could optimize the database (creating indexes, putting in memory, using a ssd etc) you can run the process in backgorund On Mon, Dec 17, 2012 at 1:34 PM, Szabo, Patrick (LNG-VIE) < patrick.sz...@lexisnexis.at> wrote: > Hi, > > I have an operation that takes about 10 minutes to befinished. It

Re: Append [RESOLVED] to your post subject if you got to a working solution

2012-12-25 Thread Avraham Serour
I oppose adding [RESOLVED] to the subject, this means changing the subject to a complete different string and detaching it from the thread. not sure how this would work for google groups, but many people (me included) read on gmail, it happened to me not long ago (can't remember which mailing list

Re: Append [RESOLVED] to your post subject if you got to a working solution

2012-12-25 Thread Avraham Serour
like I said, one could post "RESOLVED" on the first line on a conclusion post, this way it would pop up on search results. it is not an ideal solution like having it in the subject like forums use these days but it is the workaround that comes to my mind. my hope is that other people can give their

Re: Django 1.4 Development Workflow Using Static Files

2012-12-25 Thread Avraham Serour
Maybe you can just upload the files directly to the collect static folder on the server In any case maybe you want them under version control, so I guess you could just automate all these steps with fabric On Dec 26, 2012 1:00 AM, "huw_at1" wrote: > Hi again, > > Another quick question. I'm stil

Re: Append [RESOLVED] to your post subject if you got to a working solution

2012-12-26 Thread Avraham Serour
so maybe we should file a bug report to gmail on this On Wed, Dec 26, 2012 at 10:01 AM, Axel Rau wrote: > > Am 25.12.2012 um 09:51 schrieb Avraham Serour: > > > I oppose adding [RESOLVED] to the subject, this means changing the > subject > > to a complete different stri

Re: Django installation on Hostgator

2013-01-03 Thread Avraham Serour
Hi, I'm also using hostgator to host a django project. first of all note that they have different plans with different features, what I'm going to write applies to their shared hosting plans. Looks like they are using some version of centos, which comes with python 2.6 I believe. Installing a pyth

Re: use email as databse nay orm ?

2013-01-07 Thread Avraham Serour
maybe I didn't understand correctly, but do you want to use email as a backend for storing data? like an sql to IMAP wrapper? On Mon, Jan 7, 2013 at 5:50 PM, bussiere bussiere wrote: > Is there any orm or modification of django orm to use email as database > for django ? > > Regards > Bussiere >

Re: Moving a Django website to another server

2013-01-31 Thread Avraham Serour
similar question on the same topic: I used dumpdata/loaddata to move from sqlite to postgres, while it was able to move the relations it didn't get any image, any way I could something similar but including the images? would south be able to do it? On Thu, Jan 31, 2013 at 11:09 AM, John Roberts

Re: Moving a Django website to another server

2013-01-31 Thread Avraham Serour
Just checked the docs, looks like ImageField stores the path it was a satchmo app, does someone knows what it does with the product images? thanks avraham On Thu, Jan 31, 2013 at 4:45 PM, Kelly Nicholes wrote: > If you're storing your images in your database (don't) then your db > migration sh

Re: Need guidance on static website conversion to Django

2013-02-05 Thread Avraham Serour
if the site is static why use a cms? just serve the static files, you won't get any faster than that On Tue, Feb 5, 2013 at 8:37 PM, Steve Metivier wrote: > >- Project: Convert an essentially static HTML website and its attached >WordPress blog, to Django, to improve on its currently sl

Re: E-commerce framework for downloadable content

2013-02-08 Thread Avraham Serour
don't forget satchmo. In any case I believe all the shops have support for downloadable products, it it a fairly common case Usually the shops don't store cc info, they connect to some payment processor like paypal, or are flexible so you can implement your own like collect on delivery avraham

Re: Multiple sites and inheritance

2013-02-14 Thread Avraham Serour
I'm not sure you can inherit the whole project, in any case I believe you could make a boilerplate project and override whatever settings or models as needed. On Thu, Feb 14, 2013 at 11:25 AM, Jonathan ATTON wrote: > Hello, > > I currently have a website made with Django. I use models, databases

Re: Impossible? Django with NTLM SSO auth on windows?

2013-03-04 Thread Avraham Serour
Hi, Does anyone think using ntlm instead of/on top of oauth/social logins. Ideally this could be given as another choice of login/authentication on top of oauth options, this would be a solution to the user not having to remember yet another password. does linux have anything like that? would thi

Re: Create Django web apps with drag and drop interface builder

2013-03-23 Thread Avraham Serour
This looks nice but the documentation is lacking yet I hope your projects success (also the desktop GUI builder) If I may make a suggestion, keep in mind that today people use bootstrap (and foundation ), the framework could support that. and also it could make it easy

Re: [django-users] Limit uploaded image properties

2013-03-26 Thread Avraham Serour
next time consider recommending pillow instead of PIL https://github.com/python-imaging/Pillow https://pypi.python.org/pypi/Pillow/2.0.0 On Tue, Mar 26, 2013 at 4:30 AM, Nikolas Stevenson-Molnar < nik.mol...@consbio.org> wrote: > I think you can get at a file's size with the 'size' attribute (in

Re: Django hosting. Need to run executable for my app

2013-04-09 Thread Avraham Serour
I have a toy account on bluehost, I compiled my own python version on my $home no problem. It is slow to run my django projects, but I compile python packages when pip install wants no problem On Tue, Apr 9, 2013 at 9:57 PM, Josh Cartmell wrote: > +1 for webfaction, it shouldn't be a problem to

Re: Serving files in production

2013-04-11 Thread Avraham Serour
you can create a subdomain (static.yourdomain.com) and serve static using that, configure the second webserver to serve this subdomain On Thu, Apr 11, 2013 at 2:01 PM, Drew Ferguson wrote: > Hi > > The docs recommend serving static data from a second web server rather > than the one serving via

Re: Status of Django with Python 3.x

2013-04-11 Thread Avraham Serour
I believe pillow supports python 3, you can use it as a drop in replacement of PIL On Thu, Apr 11, 2013 at 6:21 PM, Timothy Makobu wrote: > From the release notes > https://docs.djangoproject.com/en/dev/releases/1.5/"Django > 1.6, will support Python 3 without reservations." > > And from the r

Re: How to run cdn link in a local setup without screwed up hyperlink?

2013-04-13 Thread Avraham Serour
Instead of http:// I recommend using just // , for example: On Sat, Apr 13, 2013 at 6:29 PM, Vincent Fulco wrote: > [SOLVED] Oddly, copied right from an online resource and colon was missing > in web address, accesses external site correctly now. > > > On Saturday, April 13, 2013 9:37:07 AM U

Re: PostgreSQL on windows 7 (psycopg2 install problem)

2013-04-14 Thread Avraham Serour
I usually try to compile the packages on my win7 machine, just so I can use pip install inside my virtualenv. psycopg2 was the only one so far that I couldn't, eventually I installed the pre compiled binaries on my root python installation and then copied the files/folder necessary for psycopg2 fro

Re: "ImportError: No module named django"

2013-04-15 Thread Avraham Serour
doesn't pip and virtualenv work on mac? On Mon, Apr 15, 2013 at 11:37 PM, Larry Martell wrote: > On Mon, Apr 15, 2013 at 2:34 PM, Nathan Hall wrote: > > Yep, I've got admin access, it's my personal machine. > > > > Actually, I looked again and it may not have been a password issue, this > was >

Re: Using postgres Users as django users

2013-04-16 Thread Avraham Serour
I believe you could create a custom auth that relies on the postgres auth system On Tue, Apr 16, 2013 at 3:00 PM, Maximilian Tyrtania < maximilian.tyrta...@googlemail.com> wrote: > Hi there, > > This is my 1st post, so please be gentle... > > I'm looking into using django as web front end to my

Re: Using postgres Users as django users

2013-04-16 Thread Avraham Serour
So you are saying that each user models will be using the same database but with different connection settings? I believe you can create each and every connection setting on your databases inside settings.py, each one would use the same database but a different user. When creating an object specif

Re: IDE to practice django template language

2013-04-19 Thread Avraham Serour
I really like pycharm , you should give it a try On Fri, Apr 19, 2013 at 6:42 AM, Apokalyptica Painkiller < apokalyptic...@gmail.com> wrote: > Now i'm using this: http://ninja-ide.org/. I don't know if this is what > you need, but why don't you try it. > > See

Re: How to link different kinds of objects?

2013-04-21 Thread Avraham Serour
If I could understand you right, a m2m field is exactly what you are describing. an object may belong to one or more feeds. Feed an object have an relation, The question if an object have to belong to a feed or not necessarily? does an object always have a related feed? does a feed always have a re

Re: Need good image on the fly resizing

2013-04-22 Thread Avraham Serour
You should use Pillow instead of PIL On Mon, Apr 22, 2013 at 8:59 AM, yati sagade wrote: > Check PIL out: > http://stackoverflow.com/questions/273946/how-do-i-resize-an-image-using-pil-and-maintain-its-aspect-ratio > > > On Mon, Apr 22, 2013 at 6:05 AM, frocco wrote: > >> Can someone point me

Re: How to link different kinds of objects?

2013-04-22 Thread Avraham Serour
So it looks like the m2m should be in the object Model. one more thing, maybe it would be worth it to inline the object admin in the feed admin take a look at https://docs.djangoproject.com/en/dev/ref/contrib/admin/#django.contrib.admin.InlineModelAdmin On Mon, Apr 22, 2013 at 12:22 PM, Bastian w

Re: How to switch languages?

2013-04-22 Thread Avraham Serour
I suggest taking a look at django-localeurl, I used it instead of a form to change language on my last project. I believe it is worth taking a look On Mon, Apr 22, 2013 at 6:58 PM, Cody Scott wrote: > How do you get the preferred language? > > In th

Re: I have searched and searched for a CSV Importer that does the following.

2013-04-22 Thread Avraham Serour
looks like you'll have to write something like this yourself, it doesn't seem hard to make a page presenting the user with an option before loading the file and then using just one column On Mon, Apr 22, 2013 at 5:47 PM, sparky wrote: > I have searched and searched for a CSV Importer that does

Installing django-allauth

2013-05-01 Thread Avraham Serour
Hi, I'm trying to install django-allauth in a new project (if anyone can recommend something else for any reason I'm open to suggestions) when running syncdb it says that I need to use south migrate for the allauth apps when running it throws an exception: django.db.utils.DatabaseError: table "s

Re: Installing django-allauth

2013-05-02 Thread Avraham Serour
I upgraded from 0.8.3 I believe to 0.10.1 actually the problem was that my own installation on my dev virtualenv got polluted not sure how. In any case I migrated until the problematic migrations, migrate the problematic migration with --fake and then simply ran the rest of the migrations so far

Re: How to add Foreign Key with SOUTH/DJANGO on existing Database

2013-05-13 Thread Avraham Serour
you should have run manage.py schemamigration myapp --initial before changing the model (before adding the FK) then adding the FK and after that manage.py schemamigration myapp --auto can you describe what you did exactly? On Mon, May 13, 2013 at 1:56 PM, Giorgos Kontogiorgakis < shortgeorge...@

Re: How to add Foreign Key with SOUTH/DJANGO on existing Database

2013-05-13 Thread Avraham Serour
create a FK on Node to Domain On Mon, May 13, 2013 at 2:37 PM, Giorgos Kontogiorgakis < shortgeorge...@yahoo.com> wrote: > Thanks a lot for your help mate!It was silly by me that i did the steps in > wrong order!I added the foreign-key successfully now!But i have 1 more > question if you can hel

timezone.activate GMT+offset inverts

2013-05-21 Thread Avraham Serour
Hi, I have created a middleware that calls timezone.activate like this: from pytz import timezone as tz timezone.activate(tz('Etc/GMT+3')) I when printing the time 20:20 UTC+0 it shows as 17:20 I even tried to use {% timezone "Etc/GMT+3" %} {{ value }} {% endtimezone %} but it still shows

Re: simple TCP/IP connection

2013-05-27 Thread Avraham Serour
if the python code works, in theory it works with django, I suggest you try to run it first and asking questions if it doesn't On Mon, May 27, 2013 at 3:22 PM, wrote: > Can you kindly advice me if this are the right steps to do to create an > application that handle a TCP/IP connection as clien

Re: Scripts to update Django tables

2013-05-29 Thread Avraham Serour
add your script to celery and make the necessary imports so the script can use your model just like you did in manage shell take a look at http://stackoverflow.com/questions/1310495/running-a-python-script-outside-of-django but in this case I suggest not creating a subcommand as the first answer sa

Re: Using SQL or not

2013-05-30 Thread Avraham Serour
can't see the image properly, too small, clicking on larger doesn't load and the expand button on the right bottom corner doesn't work On Thu, May 30, 2013 at 5:42 PM, Hélio Miranda wrote: > Good! > Not sure this is the most appropriate place to put it, if not I apologize. > My question is as f

Re: Queryset math

2013-05-30 Thread Avraham Serour
try using annotate, you can do something like Entry.objects.extra(select={'diff': "A - B"}) take a look at https://docs.djangoproject.com/en/dev/ref/models/querysets/#extra On Thu, May 30, 2013 at 11:46 PM, Javier Guerra Giraldez wrote: > On Thu, May 30, 2013 at 3:18 PM, SeanJ wrote: > > as s

Re: linux or windows

2013-05-31 Thread Avraham Serour
for development purposes it shouldn't make a difference, on your server I believe ubuntu would be a better choice than windows on the other hand if your server is ubuntu some might choose to use it for development also, to be as close as possible to the production environment On Fri, May 31, 2013

Re: Add a file download link that work only after login

2013-06-05 Thread Avraham Serour
maybe you could use something like this: https://docs.djangoproject.com/en/1.1/howto/apache-auth/ On Wed, Jun 5, 2013 at 6:02 PM, Bill Freeman wrote: > The easiest thing, which you may or may not find to be adequate, is to use > an "if" tag in the template to do one of: > Not render the butto

Re: Migrating data/app/project to a new location and, if possible, version

2013-06-09 Thread Avraham Serour
you can try using some kind of mysql export/import or django's manage.py dumpdata/loaddata and see of anything breaks On Sun, Jun 9, 2013 at 2:03 PM, wrote: > Hi, sysadmin here, > I am left with a django installation on a windows 2003 server that needs > to be demoted. The installation is djang

Re: Sharing session among multiple domains (generic web development question)

2013-06-11 Thread Avraham Serour
interesting problem! I googled for "Sharing session among multiple domains" take a look here for example: http://stackoverflow.com/questions/6080017/how-to-share-session-among-multiple-domains-on-single-asp-net-website it looks like you can do it across subdomains, so one solution is to split you

Re: Using Fabric to clear database records

2013-06-14 Thread Avraham Serour
manage.py flush On Fri, Jun 14, 2013 at 3:16 PM, Sithembewena Lloyd Dube wrote: > Greetings, > > I've got a Django 1.5.1. project where I have a Video model (basically > saving video metadata). I would like to create a fabfile in my project > folder so that when I run 'fab production refresh', t

Re: Probem with upgrade to python 2.7

2013-06-26 Thread Avraham Serour
If you upgraded your python installation in place you should reinstall your libraries, specially PIL which needs compiling some parts. Just pip uninstall pil and pip install again. Note that installing pil might be a headache. On a side note I recommend using pillow which is a drop in replacement f

Re: Probem with upgrade to python 2.7

2013-06-26 Thread Avraham Serour
wrote: > > > 2013/6/26 Avraham Serour > >> If you upgraded your python installation in place you should reinstall >> your libraries, specially PIL which needs compiling some parts. Just pip >> uninstall pil and pip install again. Note that installing pil might be a >

Re: An easy way to integrate Jcrop in Django's admin?

2013-06-26 Thread Avraham Serour
django is in python, just crop the image just any other python program would. people use PIL a lot, try using that (or pillow). you can also use external tools like imagemagick, either using one of the python bindings or calling the command line tools using subprocess On Wed, Jun 26, 2013 at 1:48

Re: data transfer between databases

2013-06-30 Thread Avraham Serour
manage.py dumpdata On Sun, Jun 30, 2013 at 10:40 AM, Mike Dewhirst wrote: > This is probably a Postgres question but someone might be able to offer > advice on how to transfer data :) > > New "reference" or read-only data gets input during development and I want > to transfer it to the productio

Re: Foreign Key problems with legacy database

2013-07-23 Thread Avraham Serour
you don't need songid = models.Integerfield() On Tue, Jul 23, 2013 at 6:04 AM, Brian Millham wrote: > I have the following models: > > class Requestlist(models.Model): >>id = models.IntegerField(primary_key=True) >>songid = models.Integerfield() >>song = ForeignKey('Song', db_column

Re: /admin redirects me to 127.0.0.1:8000/admin on nginx+gunicorn production server

2013-07-24 Thread Avraham Serour
Well, if it works on incognito mode you should try cleaning your cookies On Jul 24, 2013 11:33 PM, "Daniel Oźminkowski" wrote: > Hello again, > > I just had a WTF moment. I kept trying to access 192.168.1.4/admin which > opened 0.0.0.0:8000 consistently for the last couple of hours (notice > this

Re: What client side html layout tools are people using to speed up template development?

2013-07-29 Thread Avraham Serour
I never used this yahoo lib bit it seems to me that you are looking for twitter bootstrap or zurb foundation On Jul 29, 2013 12:18 PM, "Sam Walters" wrote: > Its not specific to django however i have a few small projects on the > horizon where i could really save time spent on the things im not g

Re: Can't run manage.py runserver (Django 1.5.1)

2013-08-04 Thread Avraham Serour
try running with python 2.7, python 3 support is new On Sun, Aug 4, 2013 at 9:38 PM, Anton Yermolenko wrote: > Hi guys > > i'm new to python as well as django. Seeking help for this problem > > I have python 3.3 installed and django 1.5.1 on win 7 > so when i run manage.py runserver i got this e

Re: Django for corporate web site

2013-08-06 Thread Avraham Serour
what is a corporate site exactly? from what I understand a lawyer office website is nothing more than a bunch of static pages, like a business card, you could use a cms, but you could just generate some static pages On Tue, Aug 6, 2013 at 11:41 AM, Sithembewena Lloyd Dube wrote: > Hi Sean, > >

Re: Install MySQL for Python Django on my Windows PC

2013-08-06 Thread Avraham Serour
for development just use sqlite On Tue, Aug 6, 2013 at 6:38 PM, Glenn Vulkers < luksindit-tjopt...@hotmail.com> wrote: > Hello , > > I'm wondering how I can install Mysql to use in Python Django on my > Windows PC. > I tried to install Ubuntu on a Virtual PC but it's just not working. So I > man

Re: Error: ImportError: No module named south

2013-08-11 Thread Avraham Serour
did you active the virtualenv? On Sun, Aug 11, 2013 at 5:34 PM, wrote: > My python path shows among other > paths, > /home/alekto/.virtualenv/django_project/local/lib/python2.7/site-packages/. > When I look into this dir, I find both south and > South-0.8.2-py2.7.egg-info. > > -- > You receiv

Re: Error: ImportError: No module named south

2013-08-11 Thread Avraham Serour
rtError: No module named south > > > > 2013/8/11 Avraham Serour > >> did you active the virtualenv? >> >> >> On Sun, Aug 11, 2013 at 5:34 PM, wrote: >> >>> My python path shows among other >>> paths, >>> /home/alekto/.virt

Re: Error: ImportError: No module named south

2013-08-11 Thread Avraham Serour
from this it looks like the error is that you don't have the postgres driver, nothing to do with south On Sun, Aug 11, 2013 at 5:51 PM, wrote: > *So this is what I am getting if I run the python manage.py syncdb, > without sudo:* > > (django_project)alekto@kalahari:~/Web/prosjekt/django_project

Re: Error: ImportError: No module named south

2013-08-11 Thread Avraham Serour
install psycopg2 btw, if you created the virtualenv you should need to sudo On Sun, Aug 11, 2013 at 6:05 PM, Alekto Antarctica < alekto.antarct...@gmail.com> wrote: > (django_project)alekto@kalahari:~/Web/prosjekt/django_project$ pip freeze > Django==1.5.1 > South==0.8.2 > argparse==1.2.1 > dist

Re: Error: ImportError: No module named south

2013-08-11 Thread Avraham Serour
the page hererecommends installing the binaries, try sudo apt-get install python-psycopg2 On Sun, Aug 11, 2013 at 6:13 PM, wrote: > This is what I am gettin when trying to install psycopg2, still the same > errors... > > (django_

Re: Error: ImportError: No module named south

2013-08-11 Thread Avraham Serour
try deleting no-global-site-packages.txt from the virtualenenv On Sun, Aug 11, 2013 at 6:24 PM, Alekto Antarctica < alekto.antarct...@gmail.com> wrote: > Thank you, but that is already done. I did it when I first installed > django.. so I am really confused > > > 201

django-cms like model translation

2013-08-15 Thread Avraham Serour
Hi, I'm making a site using django-cms with an app hook for django shop this is a multilanguage site, so in settings.py I have LANGUAGES = [ ('pt-br', 'Portuguese'), ('en', 'English'), ] so when adding a page, I have two tabs, one version of the page for each language I need to have tra

Re: message_set filter

2013-08-18 Thread Avraham Serour
so what's the question? On Sat, Aug 17, 2013 at 7:52 AM, Karl Arunachal < kakararunachalserv...@gmail.com> wrote: > Hello, > I have a model for messaging between the users. > > models.py: > > class Message(models.Model): > description = models.TextField() > date_added = models.DateTimeFi

Re: Django signals to all connections?

2013-08-19 Thread Avraham Serour
maybe you can use a middleware to log access On Mon, Aug 19, 2013 at 7:29 AM, Gerd Koetje wrote: > Is is possible to start an event at all connected users with signals? > If this is possible can someone show me an example of it. > > > Greetz > Gerd > > -- > You received this message because you

Re: online Django users directory ?

2013-08-20 Thread Avraham Serour
What for? On Aug 21, 2013 12:04 AM, "Fabrice Romand" wrote: > Hi, > > Do you know any online Django users directory ? > > if not, will you support a such project ? > > > -- > You received this message because you are subscribed to the Google Groups > "Django users" group. > To unsubscribe from t

Re: django user (using django ORM) + SQLAlchemy for other db tables

2013-09-10 Thread Avraham Serour
why? On Tue, Sep 10, 2013 at 7:34 PM, Dennis wrote: > Any advice (or potential problems) with using SQLAlchemy with the django > framework but keeping the django user auth module? > > The django ORM would be used for the auth module (and its user table). > SQLAlchemy ORM would be used for other

Re: django user (using django ORM) + SQLAlchemy for other db tables

2013-09-10 Thread Avraham Serour
from what I understand SQLAlchemy is an ORM, which django already have, I would assume you need something specific in the "power" that django's ORM doesn't have. so again I question why? what exactly do you need in SQLAlchemy? also what's so special about django auth? you could easily create your

Re: Reliable and cheap hosting for simple webapp in Django

2013-09-10 Thread Avraham Serour
try webfaction or digitalocean On Wed, Sep 11, 2013 at 12:55 AM, Andre Lopes wrote: > Hi all, > > I'm stuck with Django hosting. I've A2hosting but the Django hosting > is not good at all. > > They use FCGI and Passenger and both have a problem. > > If I'm more than 15min without doing a request

Re: Reliable and cheap hosting for simple webapp in Django

2013-09-10 Thread Avraham Serour
osting. The website have > 5/10 visits a day. > > On Tue, Sep 10, 2013 at 10:57 PM, Avraham Serour > wrote: > > try webfaction or digitalocean > > > > > > On Wed, Sep 11, 2013 at 12:55 AM, Andre Lopes > > wrote: > >> > >> Hi all, > &g

Re: How do I create a standalone python application that uses the django environment (e.g. the ORM etc...)?

2013-09-16 Thread Avraham Serour
the question is what for? other than the ORM what else is useful for a desktop app? if it is only the ORM you want take a look at http://www.sqlalchemy.org/ On Mon, Sep 16, 2013 at 7:17 PM, Brad Pitcher wrote: > You need to do something like this before import django stuff: > > import os > impo

Re: Help with Django installation on windows

2013-09-21 Thread Avraham Serour
you should use pip to install python packages, after you have pip you can use "pip install django" eventually it is worth to take a look at virtualenv so you can have separate environments and packages for each project in any case you should use "python django-admin

Re: Mysterious error messages

2013-09-22 Thread Avraham Serour
really? how many times do you need to send and resend and cross post? On Sun, Sep 22, 2013 at 1:23 PM, wrote: > Everyday i receive 5-10 mysterious error messages of this kind > > ... ERRORS. > > File > "../satchmo/satchmo/apps/satchmo_store/shop/context_processors.py", > line 31,

Re: "no such column" database error in admin

2013-09-23 Thread Avraham Serour
it looks like you changed the model after running syncdb, syncdb is able to create tables but not to add or remove columns. for that you should take a look at south, it is called database migrations. you may also delete the database and recreate On Mon, Sep 23, 2013 at 10:53 AM, Beverly Block w

Re: 403 Forbidden messages when saving items in django-admin

2013-10-06 Thread Avraham Serour
> You don't have permission the error seems to be fairly descriptive. you need to log in the django admin as superuser and grant permission to the users On Sun, Oct 6, 2013 at 1:48 PM, Alban Hertroys wrote: > Howdy, > > I run a Django website for some people that's hosted on a remote site. The

Re: Loading data from Django into RedShift - ORM vs SQL?

2013-10-17 Thread Avraham Serour
The whole idea of having an ORM is not having ot deal with SQL directly unless necessary. I would try to do it using the ORM first but there's not general rule, each case should be analised individually On Thu, Oct 17, 2013 at 10:21 AM, Victor Hooi wrote: > Hi, > > We have a Django eCommerce si

Re: Advice for new Dev - package or roll own

2013-10-24 Thread Avraham Serour
I think it does make sense to plug a shop app in the project rather than making something from zero, if the project has that much need for customization than it would make sense to use a more lightweight app. Same question could be asked if it make sense to develop my solution using a framework l

Re: difference in datetime aggregation when using sqlite3 instead of mysql

2013-10-26 Thread Avraham Serour
Using sqlite for dev is common practive, don't worry, it is not naive to do it. I remember seeing somehing about contenttypes and sqlite, I'm too hungry to remember now, maybe someone else in the list can give a better input than me. on the query result just do a if DEBUG or if DEVELOPMENT or if b

Re: Multiple logins

2013-11-01 Thread Avraham Serour
are you using sqlite? On Fri, Nov 1, 2013 at 6:52 AM, amanjot kaur wrote: > In my django app if two users are login in the same account and are > registering two different clients then both the clients are added > under the same client id but it should register under different client > ids. So w

Re: Invitations Apps

2013-11-07 Thread Avraham Serour
You could create a invitation model, I don't see the problem but maybe you don't even need to, if all you want is for a user to ask the server to send some emails you can just do that: let the user ask the server to send emails. On Thu, Nov 7, 2013 at 11:43 PM, Rafael E. Ferrero wrote: > Im doi

Re: Django website migration from live server to localhost

2013-11-09 Thread Avraham Serour
exactly the same error? maybe it is complaining about another missing lib? On Sat, Nov 9, 2013 at 9:17 PM, IR. T wrote: > Thanks Klifford for quick response , i have installed pip already and also > installed parse from pip but i am still geting the same error, any other > suggestions? > > On S

Re: Fabric for dependency management, testing strategy

2013-11-11 Thread Avraham Serour
for dependency management you should use pip, first step is to go through the docs for fabric (and pip) also you should google for best practices On Mon, Nov 11, 2013 at 4:40 PM, Kannan wrote: > Hi Guys, > I am new to Fabric. Please send me your thoughts of using Fabric for > dependency manage

Re: Stroring images in the database

2013-11-12 Thread Avraham Serour
I believe 1.6 has a binary field, no need for an external solution, but again, do you really need to store the image in the DB? for most cases ImageField is enough, it stores the path so apache/nginx can serve the image directly On Tue, Nov 12, 2013 at 4:30 PM, Javier Guerra Giraldez wrote: > On

Re: Startproject failing on Django 1.6

2013-11-12 Thread Avraham Serour
why are you using this font/size? it hurts my eyes trying to read and makes understanding difficult in any case, you didn't need to wait for 1.6 to be released, if your objective is to learn and you are not deploying production systems yet you could use the RC, or if before that you could use the

Re: wsgi vs. debug server URL's

2013-11-12 Thread Avraham Serour
it seems to me that this is on your apache configuration nothing to do with django or your application On Tue, Nov 12, 2013 at 7:42 PM, Sells, Fred wrote: > We deploy with Apache and it serves both django and generic html. We > are a small shop with internal applications and minimal server loa

Re: ImportError at /admin/

2013-11-14 Thread Avraham Serour
somewhere you are trying to do a 'import views' and python can't find nothing with this name, try using from appname import views On Thu, Nov 14, 2013 at 12:25 PM, Swastik Acharya wrote: > I m trying to read the html pages > but it shows the folowiing error:: > mportError at /admin/ > > No modu

Re: block php requests

2015-01-20 Thread Avraham Serour
you can tell apache to get any request ending with .php and return 404 from apache without passing the request to django you could return something else like 403 and ban the ip for some time On Tue, Jan 20, 2015 at 1:55 PM, hinnack wrote: > Hi, > > I get a lot of intrusion checks on my website -

Re: Is Django suitable for this purpose?

2015-01-20 Thread Avraham Serour
I'm not sure what kind of answers you expect by asking if django is the best tool on a django forum... In any case, of course it is possible to do this in django, it all depends on you, django is just a framework but you still need to connect the dots the time lag would only depend on how you cod

Re: Django web hosts in Canada

2015-01-29 Thread Avraham Serour
look for a vps and not a shared hosting, something like what you would get with AWS on the downside you will need to do everything yourself (installing and configuring all the libraries, updating the server etc) on the plus side it will be more flexible, it will support anything you would like O

Re: Reduce start up time for manage.py

2015-01-30 Thread Avraham Serour
I believe putting imports inside functions would slow down execution, it will make the import everytime the function is executed one could make something like a lazy import, but you would be trading slow startup for slow requests On Fri, Jan 30, 2015 at 3:49 PM, Collin Anderson wrote: > Hi, > >

Re: use apache instead of server by default

2015-02-09 Thread Avraham Serour
you should try using nginx instead of apache, the configuration files are much simpler to understand On Mon, Feb 9, 2015 at 11:21 AM, Thomas Rega wrote: > Hi, > > You have to tell the apache where to find the wsgi file of your project. > > Here you can find informations about the configuration o

Re: CSRF token missing on file upload ajax request

2015-02-09 Thread Avraham Serour
try addind the csrf on the http header instead of form data On Sun, Feb 8, 2015 at 10:40 PM, G Z wrote: > hello, I have an ajax request that sends a file to django, it is saying > that the csrf token is missing but i copied my other ajax request that are > working. I'm sure it has something to d

Re: Tests and read-only database

2015-02-10 Thread Avraham Serour
you can tell django to use sqlite for tests, it will create an in memory sqlite if you need the data on the DB for the tests you can import when initializing the tests, dump a part of the data and call it test data On Tue, Feb 10, 2015 at 3:29 AM, Scot Hacker wrote: > My project access two data

Re: Registering a stand-alone test app

2015-02-10 Thread Avraham Serour
This could be an issue with your pythonpath , it looks like the ./app folder is being added twice to the path, so the import complains it found a module with this name in multiple locations On Feb 11, 2015 8:07 AM, "Nicole Harris" wrote: > Hi All, > > I have an app in my root folder named 'bdd'.

  1   2   3   4   5   >