Sunday, January 1, 2012

django e-commerce logic

I've been looking around for django commerce sollutions for a while
and they all seem to work with predefined database models. For
instance, you always have a name field and a slug field that come with
the product. While this could seem fine if you are creating a store
form scratch, it makes it very uncomfortable if you already have a
model structure on a site and you just want to start selling one of
your models.

What I would feel more comfortable is to add a commerce layer to the
site and tell this layer how to obtain the product information, client
information, etc, or fallback to provided defaults, so it can fit in
any existing project without having to run data migrations of any
kind.

Do you know any django commerce that works like this?

--
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 to django-users+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/django-users?hl=en.

Re: Need help for using easy_thumbnails

I wrote a thumbnailing app myself:

https://github.com/francescortiz/image

The main advantages of this are:
- You set the center of attention for images through the admin
section. This way, when you crop your image it looks properly aligned,
whatever crop you do. This is the reason why I created it.
- Video thumbnails through ffmpeg
- Cached images can be exposed to public http docs, so you can have
rewrite rules to skip django when serving them.

Also:
- maks
- overlays
- thumbnails from urls (i.e: handle thumbnails for youtube videos)

On Dec 7 2011, 6:41 am, "Nibil M.S" <msni...@gmail.com> wrote:
> I am using Django Development trunk version on Fedora 15. I tried to enable
> the thumbnails option on my project followed by the instructions given inhttps://github.com/SmileyChris/easy-thumbnails. But the thumbnail is not
> working. Only the image is loading. Please help to fix the problem.
> Attaching the bookpage.html file which uses this thumbnails. I have added
> the 'easy_thumbnails' in INSTALLED_APPS of settings.py
> --
> Nibil M.S
> 'Needam'
> Trithala.
>
>  bookpage.html
> < 1KViewDownload

--
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 to django-users+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/django-users?hl=en.

Skip upload of existing S3 Object

I have a model with an ImageField and am using django-storages
S3BotoStorage backend. To reduce load on the server, I'm using
Amazon's S3 Browser Upload functionality[1] to send images directly to
S3. In order to create the model, my plan is have another view take
the uploaded key and save a model instance of my image. Currently my
view code looks something like this:

def add_existing_image(request):
...
image_key = request.POST.get('image_key', None)
im = default_storage.open(image_key)
i = Image(image=im, owner=user)

However, this seems to re-save the image on S3. I was hoping that
since I'm not directly reading the file it would not need to do so
behind the scenes, but it is. Since the goal is to not incur that
overhead, how should I go about creating model instances of these
files that already exist in my storage?

[1] http://aws.amazon.com/articles/1434

--
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 to django-users+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/django-users?hl=en.

Getting children of an ABC

I am using Django 1.3.1 and I have the following piece of models:

class masterData(models.Model):
uid = models.CharField(max_length=20,primary_key=True)

class Meta:
abstract = True;

class Type1(masterData):
pass;

class Type2(masterData):
pass;

Now, I am trying to get a list of all child classes of masterData. I
have tried:

masterData.__subclasses__()

The very interesting thing that I found about the above is that it
works flawlessly in *python manage.py shell* and does NOT work at all
when running the webserver!

So how do I get the models derived from an Abstract Base Class model ?

Regards,
Samar

--
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 to django-users+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/django-users?hl=en.

Re: django-admin.py startproject will NOT work.

At 2012-01-01 01:12:27 -0800, Chris Kavanagh wrote:
> On Dec 31 2011, 7:13 pm, Bart Nagel <b...@tremby.net> wrote:
> > When I run that I get
> >     3 arguments: ['args.py', 'startproject', 'mysite']
> >
> > Paste your own output.
>
> I get the same as you:
>
> C:\Python27\Scripts>python args.py startproject mysite
> 3 arguements: ['args.py', 'startproject', 'mysite']

What's with the spelling error?

--
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 to django-users+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/django-users?hl=en.

Re: django-admin.py startproject will NOT work.

On Dec 31 2011, 7:13 pm, Bart Nagel <b...@tremby.net> wrote:
> At 2011-12-31 16:00:44 -0800, Chris Kavanagh wrote:
>
> > On Dec 31, 6:48 pm, Bart Nagel <b...@tremby.net> wrote:
> > > Does this little script tell you correctly the number of arguments you
> > > pass to it?
>
> > Yes, it tells me the number of args.
>
> Okay, in that case the arguments should also be getting to the
> django-admin script. To give you the help message it must not be able
> to read the "startproject" argument, since the name of the project
> shouldn't matter to it. Perhaps something bad is happening to it,
> possibly due to the registry stuff you folks were talking about
> earlier, or some other Windows sorcery.
>
> Change args.py a little to this:
>
> import sys
> print "%d arguments: %s" % (len(sys.argv), sys.argv)
>
> And now run it with the arguments you were trying to give to
> django-admin:
>     python args.py startproject mysite
>
> When I run that I get
>     3 arguments: ['args.py', 'startproject', 'mysite']
>
> Paste your own output.
>
> --bart

I get the same as you:

C:\Python27\Scripts>python args.py startproject mysite
3 arguements: ['args.py', 'startproject', 'mysite']

--
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 to django-users+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/django-users?hl=en.

Re: Happy new year

Hello Geeks,

I wish you all a happy mew year.

DNSr.

Sent from Samsung Galaxy S

On 1 Jan 2012 08:24, "girish shabadimath" <girishmss.1203@gmail.com> wrote:
New year wishes to everyone,,

regards,
girish ms
On Sun, Jan 1, 2012 at 10:24 AM, Nikhil Verma <varma.nikhil22@gmail.com> wrote:
Happy new year to all of you.


On Sun, Jan 1, 2012 at 10:22 AM, yati sagade <yati.sagade@gmail.com> wrote:
Happy new year all :)


On Sun, Jan 1, 2012 at 7:54 AM, Adrien Lemaire <adrien.lemaire@aquasys.co.jp> wrote:
Happy new year dear folks !

On Jan 1, 1:48 am, Sławomir Zborowski <stilew...@gmail.com> wrote:
> Happy new year, Django users :-) !

--
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 to django-users+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/django-users?hl=en.


--
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 to django-users+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/django-users?hl=en.



--
Regards
Nikhil Verma
+91-958-273-3156


--
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 to django-users+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/django-users?hl=en.



--
Girish M S

--
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 to django-users+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/django-users?hl=en.

--
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 to django-users+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/django-users?hl=en.