Account Options

  1. Sign in
The old Google Groups will be going away soon, but your browser is incompatible with the new version.
Google Groups Home
« Groups Home
a bit lost ...
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  9 messages - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
oto iashvili  
View profile  
 More options Sep 28 2012, 8:18 am
From: oto iashvili <optimum.dulo...@laposte.net>
Date: Fri, 28 Sep 2012 05:18:33 -0700 (PDT)
Local: Fri, Sep 28 2012 8:18 am
Subject: a bit lost ...

Hi,
for a new project, I have to make a website for classified ads with pyramid
and I have to say I'm a bit lost.
Im used to develop with django. very easy, it take all decision for u
(template, auth, ...)
Pyramid seems to be very powerfull, but also a bit complexe.

for my project, i need :
-to deal with database : lets use sqlalchemy
-to deal with url : url dispatched for this

till this, it is very simple, tutorial are really well done.
but then ...
- for forms : formalchemy seems to be good, easy for admin part, but
difficult to find doc how to create form and validate them in front end.
deform seems also ok, but it is bad that u cant easily change templating
system and that u need to "redefine" your model when formalchemy create
form from model.py
- templating : mako, jinja2, .... ??
- user management : a lot of different possibilities here also

is there maybe a scaffold which could be use to have something optimized to
deal with my needs because alchemy scaffold is not enough ?

thanks for helps


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Chris McDonough  
View profile  
 More options Sep 28 2012, 10:28 am
From: Chris McDonough <chr...@plope.com>
Date: Fri, 28 Sep 2012 10:28:17 -0400
Local: Fri, Sep 28 2012 10:28 am
Subject: Re: a bit lost ...

On Fri, 2012-09-28 at 05:18 -0700, oto iashvili wrote:
> Hi,
> for a new project, I have to make a website for classified ads with
> pyramid and I have to say I'm a bit lost.
> Im used to develop with django. very easy, it take all decision for u
> (template, auth, ...)
> Pyramid seems to be very powerfull, but also a bit complexe.

I might suggest that you stick to Django if you like the choices it
makes for you.  Django is a very nice system.

There is also Ptah, which is built on top of Pyramid, but makes more
choices for you.  Also, Kotti.

Nobody is going to be able to answer this question, because it's
hundreds of questions.  It really sounds like you need a higher level
system to take some of the responsibility for making these choices out
of your hands.

- C


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
oto iashvili  
View profile  
 More options Oct 2 2012, 7:14 am
From: oto iashvili <optimum.dulo...@laposte.net>
Date: Tue, 2 Oct 2012 04:14:56 -0700 (PDT)
Local: Tues, Oct 2 2012 7:14 am
Subject: Re: a bit lost ...

hi,

thanks for answer.

problem with django is that orm is a bit limited for my needs. That is why
I choosed pyramid (also because it is so powerfull ;-) )

my post was not to say that I prefer someone else to make choice for me,
but more to ask for advices, for tips, telling me advantages and
disadvantages of different packages. or maybe someone know existing
projects dealing with such problematic than me and from which I could find
example on how to use different packages.


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Marco Mariani  
View profile  
 More options Oct 2 2012, 7:35 am
From: Marco Mariani <bir...@gmail.com>
Date: Tue, 2 Oct 2012 13:35:04 +0200
Local: Tues, Oct 2 2012 7:35 am
Subject: Re: a bit lost ...
On 2 October 2012 13:14, oto iashvili <optimum.dulo...@laposte.net> wrote:

> problem with django is that orm is a bit limited for my needs. That is why I
> choosed pyramid (also because it is so powerfull ;-) )

You could try with turbogears 2.2 as well. SQLAlchemy and other
goodies are there by default, and it's certainly more flexible than
django.

 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Jonathan Vanasco  
View profile  
 More options Oct 2 2012, 12:13 pm
From: Jonathan Vanasco <jonat...@findmeon.com>
Date: Tue, 2 Oct 2012 09:13:56 -0700 (PDT)
Local: Tues, Oct 2 2012 12:13 pm
Subject: Re: a bit lost ...

While Pyramid is very powerful, it is very low level and has no "bells and
whistles".  You could potentially rewrite Django on top of Pyramid.

To try and address this question, let's imagine that when building on
Pyramid or Django, there are 3 main types of code :

- Core ( Pyramid or Django Itself + the directly supported packages :
sqlalchemy, mako, etc )
- Third Party Pyramid Libraries ( turbogears , ptah, kotti, formalchemy,
etc ; or any of the django plugins )
- Your Code

When compared to one another:

- The "Core" in Pyramid does less than in Django
- A lot of the core functionalities in Django are in the Third-Party
category for Pyramid

If you want to have lots of fancy Admin Backends, User Management, etc
under Pyramid -- then you'll need to rely on a third party library.  When
you use those 3rd Party Libraries though, you'll be bound by their
constraints.  My point is that you're no longer comparing Pyramid to
Django, but TurboGears/Kotti/Ptah to Django.

A lot of my consulting clients build applications on Rails & Django.  Their
workflow is generally this:

- start a new project
- something is up and running on day 1
- every day of iteration, new features exist.  the daily workflow is 2
hours to find django/railss module, 4 hours to override/monkeypatch it, 2
hours to actually code on the application
- A few months in, and usually after the project launches, the daily
workflow becomes 8hours of trying to recode around Django/Rails/Plugins
limitations

When people build on Pyramid, the workflow is more like:

- start a new project
- you might not see anything for a week
- every day new features exist. the daily workflow is 7+ hours building
application logic, <1hr dealing with Pyramid or 3rd party libraries
- A few months in, and usually after the project launches, the daily
workflow doesn't really change

I mention that because if you're coming to Pyramid from Django, you should
understand that the cost of all the benefits that Pyramid gives you later
on, is that it's a bit slower to start out with.  You have more control of
the foundations.

To address some of the points you made:

- You can use Mako or Jinja2 or whichever templates you prefer for your
project, then use the Chameleon template with Deform as needed.  You're not
bound to using a single templating system with Pyramid.  You can mix and
match templates within the same project.  

- User management is something that Pyramid doesn't really concern itself
with.  "Users" aren't something that pyramid is concerned with at all,
outside of the optional authentication & authorization controls.


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
León Domingo  
View profile  
 More options Oct 2 2012, 1:01 pm
From: León Domingo <elede...@gmail.com>
Date: Tue, 2 Oct 2012 19:00:43 +0200
Local: Tues, Oct 2 2012 1:00 pm
Subject: Re: a bit lost ...

Great explanation, Jonathan!

On Tue, Oct 2, 2012 at 6:13 PM, Jonathan Vanasco <jonat...@findmeon.com>wrote:


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Zak  
View profile  
 More options Oct 4 2012, 10:07 pm
From: Zak <zakdan...@gmail.com>
Date: Thu, 4 Oct 2012 19:07:50 -0700 (PDT)
Local: Thurs, Oct 4 2012 10:07 pm
Subject: Re: a bit lost ...

> When people build on Pyramid, the workflow is more like:

> - start a new project
> - you might not see anything for a week
> - every day new features exist. the daily workflow is 7+ hours building
> application logic, <1hr dealing with Pyramid or 3rd party libraries
> - A few months in, and usually after the project launches, the daily
> workflow doesn't really change

 I find this is true only the first time you use Pyramid. After you know
what components you prefer (which DB, etc..) and you know how to plug them
in, there's no reason why a Pyramid app should take any long than a Django
app. The time sink with Pyramid is the learning curve...learning about root
objects, INI files, traversal, decorators, authorization/authentication, is
NOT trivial with Pyramid. The documentation is very good, but it's also
very verbose. Fortunately the Pyramid community is great and has helped me
out quite a bit.

 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Jonathan Vanasco  
View profile  
 More options Oct 8 2012, 11:04 am
From: Jonathan Vanasco <jonat...@findmeon.com>
Date: Mon, 8 Oct 2012 08:04:17 -0700 (PDT)
Local: Mon, Oct 8 2012 11:04 am
Subject: Re: a bit lost ...

@zak--

to some extent yes.  but the levels of automation and magic you see in a
Django app vs a Pyramid app early on are a stark contrast.  With django you
can enable a handful of extensions, and have a role-permisisoned forum site
with blog posts and comments, complete with admin and user interfaces -
then you just tweak it.  With Pyramid, you don't get any of that stuff
unless you use a 3rd party framework on top, and even then the level of
magic isn't nearly as intense.  

The time and effort to build a mature, stable, app with Django and Pyramid
is probably equal.  My point was just that you'll have to invest more on
the foundations in Pyramid - and end up building it correctly from scratch;
while with Django you'll bootstrap on a ton of random stuff, then try to
configure it into your app, then start to offload it for performance and
business logic reasons.  

Personally, one of those paths is a lot less frustrating to me...


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
oto iashvili  
View profile  
 More options Oct 11 2012, 1:27 pm
From: oto iashvili <optimum.dulo...@laposte.net>
Date: Thu, 11 Oct 2012 10:27:44 -0700 (PDT)
Local: Thurs, Oct 11 2012 1:27 pm
Subject: Re: a bit lost ...

thanks a lot, that really a great explanation. It is much more clear for me
now.
still, if someone can give me some example of application with such needs
as I, it would be a pleasure ;-)


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »