Building a website on Top of Django-CMS or Mezzanine [closed] - django

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 7 years ago.
Improve this question
Is it possible to built my "Learning Management System (LMS)", on TOP of Content Management Systems like Mezzanine or Django-CMS ?
I'm building a product for a private school, and I found that the patterns are so close to a CMS, except for having my own models (Course, Subjects, etc.)...
There should be some learning curve to get the best result of a CMS, of course.
what do you recommend ??

Mezzanine has its own implementation of a page tree rather than using mptt, and it's quite solid. It's also designed for you to add your own Django models to the tree. From what you've said (which granted isn't much) it sounds quite suitable. Have a read over the relevant docs section here: http://mezzanine.jupo.org/docs/

I've not used mezzanine, but doing something like this would certainly be possible on top of django_cms.
It's quite straightforward to write custom plugins for a CMS, so you could build new widgets (assessments, polls etc) which can be dropped into cms-based pages. The menu's can also be extended , with new menus build based on objects in your models (e.g. courses, modules)... one gotcha with this is that the menus get cached, so the app either needs to be restarted to rebuild menus or you would have to add a hook to rebuild them manually. There are pretty good docs on this here:
http://docs.django-cms.org/en/2.1.3/extending_cms/custom_plugins.html
and on building custom apps, which can be hooked up to CMS urls:
http://docs.django-cms.org/en/2.1.3/extending_cms/app_integration.html
Overall, I quite like django_cms, although the breakage with successive versions (and also versions of MPTT on which it depends) has been quite a pain. It looks like they are trying to clean up this sort of thing in forthcoming releases though, and contrib.staticfiles is now supported which is nice.

Related

Django and Bootstrap relationship [closed]

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 3 years ago.
Improve this question
I'm working on a development road map for a django project. My choosen IDE is pycharm pro and mock up tool is bootstrap studio. One of my criteria is a calendar and I have discovered that none of the existing public projects will meet my needs so I will have to create one from scratch (no problem). My typical approach would have been that the UI and the django project would be done in near parallel periodically merging and diverging the two. However, given the ability of the two software tools, I'm starting to think that that a better approach may be to do the UI first in BSS, next import the templates into the django project and finally perform the django dev to meet the needs of the UI.
The specific calendar functionality is not the issue here, this is a methodology question. While I know that there is a subjective answer to this question (which is not the "answer" I'm looking for here), there also has to be an objective answer as to why this would not work, or be the incorrect approach.
Doing the UI first is fine if you already know exactly what you want it to do and can specify that. Doing the Django first lets you play around with a working rough version and get a better feel for what works best before fine tuning the look and feel. Like you suggest, working on them both together will let each inform the other.

How to structure a Django website [closed]

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 6 years ago.
Improve this question
After creating reusable Django apps do one make an app that glue them together to create a website? Also is it correct to make each menu item and section an app itself in Django? The source code of https://www.djangoproject.com/ is probably the best example of how to correctly structure Django websites if it is available.
How you organise your project is up to you and mostly depends on the project's specific needs, but yes using a "main" app to glue the pieces together is a common and working pattern. Also you don't have to try and make your project's apps reusable - start with just what your project requires and if you find out some parts solve recurring problems it will be time to factor them out as more generic apps.
Wrt/ your menus they have to match the site features not it's implementation so the "one app one menu" thing very seldom makes sense. And since it's a "glue" part it really belongs to the project's main app (even if it usually delegates parts of the job to other apps).

Using Google Chromium's Views Project as an Application Framework in C++ [closed]

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 7 years ago.
Improve this question
I have had contact with Google Chromium Code and that’s terrific for building applications with. The problem now lies that no-one has tried to use it outside Google Chromium Project. What I have in mind is to develop an open source project which may be used for this purpose. The fundamental goals would be:
Guarantee Linux-Windows support for the same code.
Take advantage of all resources available like thread control, stats, unit test…
Make it clearer how to use Skia for graphic effects and customizations.
Present a useful application doing the most of this.
Integrate C++ and JavaScript code using V8
Use Webkit for rendering html content
There’s a chance of it get off the paper. What do YOU think?
Claudio M. Souza Junior
Developer.
see https://github.com/lianliuwei/chromium_base
I create it for the same reason like you.
chromium is great project. It's code could be useful to using in other project. but It need time to extract it. I see one project to extract the ui part, but it change too many for noreason for example it change the .cc to .cpp. my project extract the base, ui, view part for the origin project, rm the ICU (it's so big) and gurl(you can add it quick) keep the gyp, gclient, grit-i18n, gtest, gmock... change the code little. and keep the extract history. I add a new type of messageloop for using it in the MFC(for company project :( ) now it can only work on Windows but it's no so hard to make it work on linux.(google do it all)
for use the browser in you project you can see the http://code.google.com/p/chromium/ for help.
It's great this project help you a litte. I at first think it's a no one care project.
I'm assuming you have looked at the extensively documented and developed QtWebkit and know why you don't want to use that?
I'm sure it will be easier to use V8 in a QtWebkit application than to somehow tear out Chromium's "View project".
Qt has the bonus that as long as you operate within the framework, everything will work on a lot of different platforms (more than Chomium now supports I think).

Django Snippets Required [closed]

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 a really tight schedule to code up a prototype for a website. I'm working with Django and am just starting out. Can you suggest open source Django snippets for the following:
1) A User Registration system (Registration/Authentication/Sessions)
2) A Rating System (Preferably a x/10 or 5 stars rating system)
3) A tags based search system
I'm really a noob and I need to get the version 1 out in 4 hours. So I'll just use open source code and modify it. I will make sure to keep the final version open sourced as well.
Check out the Pinax Project. That should cover #1 (OpenID) and #3 (tagging).
Your basic Django installation will provide users, authentication, and session handling right out of the box. For your user registration needs, you might consider django-registration. It's written by James Bennett, a well-respected Django contributor. For tagging, I've always used django-tagging.
I've never used a rating system in a Django application, but you might consider using django-ratings.
Good luck!
I never searched for your exact two examples, but django snippets is usually a really good place to start when looking for django code examples.

What is the difference between Django and Joomla? [closed]

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
What is the difference between Django and Joomla?
Or better still what is the difference between CMSs (Joomla, Drupal, etc) and Web Frameworks (Django, Symphony, Zend, etc)?
Using toy construction kit analogy-
CMS: Comparable to a doll house kit. You can customize it quite a bit, but it's well suited for building mainly one kind of toy.
Web Application Framework: Comparable to a Lego set. you can build various kind of toy structures rapidly as you don't need to make the left bricks yourself.
no Framework: Developing web apps only with a programming language's standard library is like making toys out of plain clay. It offers most freedom, but you also pay the price of making all the pieces yourself.
Django (and web frameworks) provide common functionality needed to build most common websites. This functionality is mostly technical and a novice user (read: non programmer) has little knowledge on how to utilize it.
Where as Joomla (and CMSes in general) are packages aimed at non programmers (but still technical users, somewhat at least) to deploy and run websites using them.
If you install Joomla, you can add content to your website
If you install Django, you can start programming something that will allow you to add content
Straight off the Django website:
Is Django a content-management-system (CMS)?
No, Django is not a CMS, or any sort of “turnkey product” in and of itself. It’s a Web framework; it’s a programming tool that lets you build Web sites.
For example, it doesn’t make much sense to compare Django to something like Drupal, because Django is something you use to create things like Drupal.
Of course, Django’s automatic admin site is fantastic and timesaving – but the admin site is one module of Django the framework. Furthermore, although Django has special conveniences for building “CMS-y” apps, that doesn’t mean it’s not just as appropriate for building “non-CMS-y” apps (whatever that means!).
Web frameworks are programmer tools that help build content managers and similar web applications.
Just as content managers can be categorized from simple & easy (Wordpress? and Joomla?) to highly customizable & complex (Typo3?), frameworks can be best for certain tasks (and not so graceful at others). Some web frameworks (Rails?, Django? and TurboGears?) are more geared towards CMS-like applications, some others (Werkzeug? and Twisted?) try to provide foundation for more complex applications. And there are others (Pylons?) trying to find the middleground.
NOTE: Project names in parenthesis all have a question mark because the categorization is my personal opinion. They may or may not be correct examples.