Closed. This question is off-topic. It is not currently accepting answers.
Want to improve this question? Update the question so it's on-topic for Stack Overflow.
Closed 10 years ago.
Improve this question
Good Afternoon,
We are currently investigating using Plone for our CMS solution.
Ideally we would move our current websites accross to Plone, and then move across other applications later in the project.
I have a couple of Questions that Should be easy, but I have not found direct answers here;
Does Plone have the ability to run multiply domains, So say 5 domains
could run off one instance of Plone, and dependant on the domain,
different content and pages would display? Would this be a simple exercise?
The ability to have multiply user hierarchy, some with Editing ability, but can not post changes, and other who can approve the content before it is published and edit when needed?
We are not scared of the programming or developing additional applications, and we are also looking at employing a company who knows Plone as well to guide our process.
Yes you can have multiple Plone sites for each domain on the same Plone instance(s)/zeo setup. I would recommend you use collective.recipe.filestorage and give each site it's own data.fs (instructions on how to use this here) in case you want to split them up later. If you just want to have each domain point to a separate section of the same website you can do that as well.
Yes you can customize the workflow and user groups however you would like. There is some basic information here.
What exactly is your use case for serving one instance of Zope over several domain names, with different content? In any case, this could probably be achieved with a combination of Apache VirtualHosts (serve the site via multiple domain names) and mod_rewrite (to serve different content for each domain.) Really, though, you may be better off running separate instances of Plone.
Zope does support permissions. I haven't read the documentation on permissions closely to determine if the Zope permissions model meets your exact needs, but you should start here.
Related
Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 5 years ago.
Improve this question
I want to build a web application using Django. Basically a CRM for specific business type. Lets say it's for Gyms for this explanation. I will have multiple customers. The customers will each get their own 3rd level domain name. Like golds.gym.com and 24hrfitness.gym.com. Each customer will have their own customers that will use the site as well. I want to allow overlapping usernames across sites, but unique to each site. I would also like to use the built in admin pages, but I will need to be sure that the admin pages are site specific.
My question is more or less, "Is this possible". But I think what I really want to know is "Is this possible using something built in or something someone else has out there for Django?"
I have looked at the sites framework documentation and that seems to be what I need, however I have not found any documentation on how to make the admin and the users site specific.
You can definitely do it with the sites framework, but it does take a significant amount of bootstrapping. This also goes under the assumption that you will use a different hostname for each site, as this is how the sites framework works.
When you use the sites framework, there is middleware available that automatically populates the ID of the site on the request object.
If you want the end users to be able to use the admin section and see ONLY the objects on their account, you will need to have an account foreign key for every model.
You could then do something like overriding get_queryset in your views to automatically exclude any objects not belonging to the account.
Of course, you would also need a custom user model so that you can link users to sites.
If you are using postgres you could consider checking out Django Tenant Schemas, which accomplishes multi-tenancy using native postgres schemas.
Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 8 years ago.
Improve this question
I need to create a website using python but without Django or any other framework, since the website I need to create ts very custom (at the back-end level specially) like having a dashboard after login and stuff like that.
I want to know what are the best practices and/or tutorials that can help me in such a situation.
I began to work with Django 3 months ago in a company. In my opinion this framework is very useful because you avoid to write a lot of HTML code and came with a lot of tools to automate the creation of many parts of the web and the database. Django allows you to use different databases.
I recommend you to visit Django Website and see the overview and the installation. The difficulties for the beginners are to understand the use of views,templates,urls... but in the web site you have a 6 steps tutorial that make a very good introduction, anyways you must get some more information like this Django Book but is almost the same than the tutorial but more extense.
I didn't work with Python until I began to use Django, and I have to say that now I love the dynamism of Python, is fast and easy to understand.
I hope this can help you a little
Using a framework like Django will start you right into developing your application. They you intend to work will cost you years of work to create your own web application infrastructure without getting anything useful.
The strength of Python is the availability of countless modules, packages and frameworks to build upon. Without there you will be getting nowhere.
Closed. This question is opinion-based. It is not currently accepting answers.
Want to improve this question? Update the question so it can be answered with facts and citations by editing this post.
Closed 8 years ago.
Improve this question
I just start a django-fairy project for django 1.3.1 here: https://github.com/goFrendiAsgard/django-fairy
It is just a simple (but I think useful) python script that can help django newbie to develop everything faster. The basic idea is:
When you make a view, usually you will make respective url and template
When you make a model, usually you will register it on admin
So that it would be more fun, if there is a way to do such a things in a simple way.
I want to make sure if what I do is right.
So these is my questions:
Do you think that such a project is useful for community?
Is it violate django (and python) philosophy?
Do you think that such a project is useful for community?
Yes, just keep developing it plus, you will know that from the users as feedback and even if the feedback wasn't good enough, let your project be, enhance it more and more and your project will get a good rating and acceptance in no time. Just consider your users' notes and comments and you will be fine.
Is it violate django (and python) philosophy?
No, it is not.
The only way to tell if it is useful is for you to complete it and publish it and people start using it.
No, there are tons of other quick bootstrapping scripts available for django. There is no such policy that prevents this.
However, you shouldn't make a lot of assumptions as to what the end user will want to do with their models/views. Django is a toolset and as such there are lots of ways to use it.
For example, there are models that are never entered in the admin, and similarly there are django sites that don't have a "front end" (ie, a view) and only use the ORM and the admin, with applications like databrowse
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 8 years ago.
Improve this question
I realise that web application frameworks are well documented, yet having tried 2 Python frameworks and found that are neither are suitable for my task, I hope you'll understand the need for this question.
I'm looking for a lightweight, "micro" framework for Python with the following features:
Basic HTML layout management
Features for HTML forms, tables etc.
Authentication and session management
Preferably integrable with mod_wsgi
Seamless importing of packages
That's it. You may ask why I need a framework for this at all - I don't. But it would save a lot of time, and I'm very surprised that I can't find something like this.
I'm reasonably advanced in Python but want to deal with the HTML and authentication as effortlessly as possible. I have a lot of existing code that I would like to be called from within the framework. I don't require an ORM or DAL, I would like my existing classes to continue to use their own MySQLdb driver. Inevitably, for authentication to be handled, an ORM or DAL will be included, but I just won't use it for anything other than authentication.
I have tried web2py and Grok, both supposedly lightweight, configuration-free frameworks, yet both were far too high-level.
Thanks in advance.
You should have a look at flask.
It comes with jinja as a template language.
It doesn't contain any ORM.
There are lots of well supported extensions for sessions, forms, ORM, etc.
You can also try WebPy.
The full (?) list of python web frameworks is given here. This slideshow compares 10 micro frameworks and should be of intrest. Not all of them will tick your boxes but at least it should give some hints as to their pros/cons.
I propose looking into web.py and Tornado.
Web.py is incredibly simple to use with a power of a full web framework.
I used it for OData implementation with great success.
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 7 years ago.
Improve this question
I'm building an app for a small business so I've to work with currencies, decimal numbers, etc... My goal is to create something like pulseapp.com.
I've searched for opensource projects to look and the only thing I had found was django-cashflow. This app uses python-money.
I've read some of the code and the ways it's coded seems a bit weird to me and it's not fully complete.
Is the app worth to take a deep look?
Does anyone know about another similar app?
Is the task difficult or a begginer like me could find a way to code it himself?
If you're dealing with currencies, you might look to satchmo's codebase. http://www.satchmoproject.com/ They're the current front-runner in Django e-commerce. I'm sure they have money modules.
Here you have something you might be interested:
Tryton with Django
I started to use python-money in an application a couple years ago, but had to abandon it due to some problem. I apologize for forgetting the exact problem, but I do remember for our use case it didn't make sense anyway... we just needed decimal fields.
I'd also be wary of django-cashflow not having any activity for 2 years, although the project is small enough it should be easy enough to fix any problems yourself.
For existing Django accounting apps I would suggest enhancing, or at least looking at, minibooks. NOTE: the license is AGPL v3 which could make it unusable for your environment.
Another road to travel would be to investigate porting OpenERP (also GPL IIRC) from Python/GTK to Django. Tryton might also be a starting point, it's GPL3 and IIRC a fork of OpenERP.
I've written a framework to help speed up the development of customised commerce aspects of django sites: Rollyourown shopping.
It lets your write your models yourself, and uses a declarative syntax to define a summary class, which handles calculating totals, caching and formatting values etc. It's pretty fast for my use cases, and very flexible: I've used it for online stores, billing for consulting-services and auction sites :-)
The current version works fine, but I'll be releasing a '1.0' version later this month as I decide on the final (stable) API details (names etc) and maybe some external reviews.