guys
I just installed Mezzanine and would like to use it for a "blogs" section in a Django project. how to sett into my settings.py and urls.py to use mezzanine blog? i want myproject.com/blog using mezzanine blog apps
Related
Basically I have built the basics of a website.
I am now wanting to implement a blog on the website as another app.
How do I go about linking the URLs, views, models within these apps?
Also, with the templating do I have to insert the blog webpage to the blog app or keep it on the main website app?
You can create new app as , python manage.py startapp newapp command, and in the settings.py module, add newapp as installed app
I have install django and create django project. everything was working fine untill i install django-cms than my django project and django cms project is getting weird for exam the search icons become so big.
I think it is conflict between django cms and django css style or something. Can anyone recommend me any solution to this? thank you
I used to run Mezzanine on Heroku. Recently, I need to customize some data in the django.po. As Mezzanine is installed from requirements.txt, how do I upload my own django.po in order to overwrite Django's standard django.po?
The best solution is to override them dynamically while running application.
Here's probably the best answer that I've seen.
Tried to install django-userena, and when launching
python manage.py startapp polls
I get the userena.compat.SiteProfileNotAvailable error.
So this is very odd.
First of all, official Django docs claims to depricate AUTH_PROFILE_MODULE setting : https://docs.djangoproject.com/en/1.7/releases/1.7/.
But /usr/local/lib/python2.7/dist-packages/userena/utils.py raises this error if it can't find AUTH_PROFILE_MODULE setting. Does it mean I can't use userena unless I downgrade to versions 1.6 or lower?
Secondly, I haven't created any models yet, so which profile I should have been addressing when starting app?
Django version 1.7.7, userena - 1.4.0
I solved the problem by uninstalling userena, creating accounts app, editing accounts/models.py file and only then installing userena.
Worked out perfectly
I'm using the django-registration app from https://bitbucket.org/ubernostrum/django-registration/, and I'm a bit confused as to where I should place it.
I've added "registration" under INSTALLED_APPS in settings.py (as instructed), but shouldn't the registration app mentioned be in my project directory, with all my other apps? This seems to make more sense to me than having it somewhere else (ie. PYTHONPATH).
So, I'm thinking of cloning the repo, just grabbing django-registration's registration app, abandoning all the other files included in django-registration (INSTALL, README, docs, etc.), and sticking that registration app in my project directory.
This way, I can edit the models to include more fields, reflect that in the forms, etc.
Is this wrong?
(Sorry, it's my first large Django project)
Normally you wouldn't touch the files of django-registration - if you want to add your own custom fields for a user profile, you'd do something like this:
Saving profile with registration in Django-Registration
When you install a django package, this package are on your PYTHONPATH, so your project see it.
So just install via pip or easy_install (pip is better), and put on settings' INSTALLED_APPS the 'registration' package
Follow this instructions