looking for ideas how to build a Django reminder service

2014-08-23 Thread Michael Lind Hjulskov
Hi :) I want to build an app for my web shop that can remind my customers to re-buy I want it to be controlled by the customer and i'm thinking it should be onotoone related to user; callable simply by calling user.reminder.days it should only send a reminder if its more that x days after lates

Re: looking for ideas how to build a Django reminder service

2014-08-23 Thread Michael Lind Hjulskov
Here are some of the code i wrote in my attempt to build it https://gist.github.com/michaelhjulskov/36aadfbd87213f3019ee -- 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 e

Re: looking for ideas how to build a Django reminder service

2014-08-23 Thread Michael Lind Hjulskov
I'm hoping that it can -on change update user.days via ajax request -return a succes alert message -- 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

Howto update a package in venv

2014-06-21 Thread Michael Lind Hjulskov
Hi Im relative new to Django and Linux commands etc. I hope to get help in here :o) I use virtualenv and requirements and one of the requirements is Sorl But Sorl together with Django 1.6.5 is giving me this error on runserver *"/home/mh/v/local/lib/python2.7/site-packages/sorl/thumbnail/helpers

on manage.py migrate appname I get: AttributeError: 'module' object has no attribute 'Migration'

2014-06-25 Thread Michael Lind Hjulskov
Hi there :) I'm stuck with this problem when I run python manage.py migrate myappname i get the following error: AttributeError: 'module' object has no attribute 'Migration' I remember I had this problem before, and I remember that I solved it by deleting all pyc files - I tried that - still e

Re: Howto update a package in venv

2014-06-25 Thread Michael Lind Hjulskov
That did the trick Tom Thanks alot for spending Your time on me. Cheers Den lørdag den 21. juni 2014 23.29.24 UTC+2 skrev Tom Evans: > > On Sat, Jun 21, 2014 at 4:57 PM, Michael Lind Hjulskov > > wrote: > > Hi > > > > Im relative new to Django and Linux command

Re: Howto update a package in venv

2014-06-25 Thread Michael Lind Hjulskov
> pip-review --interactive > > which will check all installed apps and off to update them - you can > choose to upgrade for each app (hence the --interactive). > > Cheers > L. > > On 22 June 2014 07:28, Tom Evans > > wrote: > > On Sat, Jun 21, 2014 at 4:57 PM, Mic

Re: on manage.py migrate appname I get: AttributeError: 'module' object has no attribute 'Migration'

2014-06-25 Thread Michael Lind Hjulskov
Hi Here's a bit more info about the error this is the line <https://github.com/matthiask/south/blob/master/south/migration/base.py#L314> where it fails in south Hope to get help Thanks Den onsdag den 25. juni 2014 16.19.08 UTC+2 skrev Michael Lind Hjulskov: > > Hi there :) &

Re: on manage.py migrate appname I get: AttributeError: 'module' object has no attribute 'Migration'

2014-06-25 Thread Michael Lind Hjulskov
Hi Erik Thank You I tried ./manage.py migrate myappname --traceback Still the same error message and no more info available than before. PS I see You are from DK - I'm from Aalborg, You? Michael 2014-06-25 20:31 GMT+02:00 Erik Cederstrand : > Den 25/06/2014 kl. 16.19 skrev Mich

Re: page not found errors for most urls but main landing page displaying okay

2014-06-25 Thread Michael Lind Hjulskov
Hi I had the exact same problem a few days ago. It was one of my templates that suddenntly was emty. very spooky Or maybe you have an "extends" somewhere that is not correct I would debug by looking in the relevant view and see which template is called, and the simplify that template to test if

Re: on manage.py migrate appname I get: AttributeError: 'module' object has no attribute 'Migration'

2014-06-25 Thread Michael Lind Hjulskov
> > Den 25/06/2014 kl. 21.30 skrev Michael Lind Hjulskov >: > > > Hi Erik > > > > Thank You > > > > I tried ./manage.py migrate myappname --traceback > > Still the same error message and no more info available than before. > > Check yo

Re: on manage.py migrate appname I get: AttributeError: 'module' object has no attribute 'Migration'

2014-06-25 Thread Michael Lind Hjulskov
lskov Mobil +45 22116322 2014-06-25 22:02 GMT+02:00 Michael Lind Hjulskov : > Den 25/06/2014 kl. 21.30 skrev Michael Lind Hjulskov > >: >> >> > Hi Erik >> > >> > Thank You >> > >> > I tried ./manage.py migrate myappname --traceback >>

Re: on manage.py migrate appname I get: AttributeError: 'module' object has no attribute 'Migration'

2014-06-25 Thread Michael Lind Hjulskov
se to Filezilla which would prompt such error more clearly Let me know if I can help You some day I work with ecommerce and my number is 22116322 Thank You very much Michael 2014-06-25 22:07 GMT+02:00 Michael Lind Hjulskov : > hmm > could it be: > I run my local development env with a sqlit

Re: interesting project: django-crucrudile

2014-06-26 Thread Michael Lind Hjulskov
aggree Den torsdag den 26. juni 2014 17.08.32 UTC+2 skrev Fabio Caritas Barrionuevo da Luz: > > > https://github.com/pstch/django-crucrudile > > > > -- > Fábio C. Barrionuevo da Luz > Acadêmico de Sistemas de Informação na Faculdade Católica do Tocantins - > FACTO > Palmas - Tocantins - Brasil

How to simplify this code - newbie question

2014-06-30 Thread Michael Lind Hjulskov
Hi :o) I would like to simplify *get_rating* to fewer lines of code: class Product(AbstractProduct): ... just a little info about the model fields ... title = charfield parent = foreignkey(Product, related_name='variants') rating = a float def is_group - return True if it is