admin

Site admin without username & password

Right now I'm building a personal site/blog and have pretty much got it they way I want except I'm in two minds about how to add posts to it. It's just me who'll be adding posts and to me having a user / name password to log in seems rather passé ;). I'm looking in to alternatives to play around and experiment with and one idea I have ...

best practice to create an Admin section in a ZF based application

In every large application there is an ADMIN section. In such cases, when not using ZF, I usually put all the admin stuff in a separate directory with extra security measures (like adding .htaccess based authentication and/or a second login etc). This also makes it pretty obvious in the file tree what file is what. How can I achieve the...

Django form field using SelectDateWidget

I've installed the latest SVN branch from Django which includes the new forms. I'm trying to use the SelectDateWidget from django.forms.extras.widgets but the field is showing up as a normal DateInput widget. Here is the forms.py from my application: from django import forms from jacob_forms.models import Client class ClientForm(forms...

Changing case (upper/lower) on adding data through Django admin site

I'm configuring the admin site of my new project, and I have a little doubt on how should I do for, on hitting 'Save' when adding data through the admin site, everything is converted to upper case... Edit: Ok I know the .upper property, and I I did a view, I would know how to do it, but I'm wondering if there is any property available f...

Is GlassFish Admin console (port 4848) secure?

With understanding of secure Internet connections limited to SSL, I'm doubtful about the security of GlassFish Admin console. Normal secure HTTP connections use http**s**://domain/ URLs but in GlassFish http://domain:4848/ is used to login to Admin console. Is there some kind of encryption going on between the browser and the server when...

How to secure an admin area for a public and private rails app

How would you secure access to the admin area for a web app? Our Rails CMS serves pages publicly. I would like to make the backend (/admin) inaccessible using either the webserver(apache) or firewall(netfilter). Could this be done using an SSL certificate? I would like to limit access to the backend to only those whose have the "key"...

Django admin url.py

Hi all, Im following the Django tutorial, and ive got up to part 4. But when i went back to have a look at my admin page it mysteriously didnt work anymore. So i messed around a bit more and came up with this. from django.conf.urls.defaults import * from django.contrib import admin admin.autodiscover() urlpatterns = patterns('', ...

Customizing a Django admin template

I would like to modify an admin template in Django. % cat /Library/Python/2.5/site-packages/django/contrib/admin/templates/admin/includes/fieldset.html <fieldset class="module aligned {{ fieldset.classes }}"> {% if fieldset.name %}<h2>{{ fieldset.name }}</h2>{% endif %} {% if fieldset.description %}<div class="description">{{ fiel...

Ordering fields inside Inlines in Django Admin

I have a ManyToMany relationship setup with intermediary objects in Django. Any ideas how I can order the < select >s in the Inlines that show up for the intermediary objects? ...

Unified Customer and Admin Accounts in Magento

Is there anyway to pass a customer session to the admin side and vice versa? For example... what if I want to unify some customer and admin accounts (for some very special users =) Usecase: Redirect a user from the customer dashboard to the admin dashboard via a link. Assume username and password are already synced. I've been experimen...

Wordpress admin section cleanup?

Anybody knows a good plugin for Wordpress to provide a nice Admin dashboard which also cleans the regular Wordpress update mess. I do not want customer getting distracted with the loaded content in the backend with events, news and updates (messy content updates) in the Backend login? Thanks in advance. ...

django db writes not happening immediately when running in admin site

I have a snippet of code like this in a Django application def update_account(user_account,add_widget_count): user_account.add_widgets(add_widget_count) user_account.save() notify_other_system_about_account_update(user_account) When I run this as part of my application, everything works great. In particular, when my other...

Django: Displaying only the text of a form in admin

Ok for something that sounds easy, im having some problems looking for an answer. I have this model: class Page(models.Model): creator = models.TextField(blank=False) name = models.CharField(max_length=70, primary_key=True) name_slug = models.SlugField(max_length=70, unique=True) whenever I save in admin i...

Install Shield 2009 Premier : Don't want to put the entry to control panel

My installation would 1. copy some files 2. some registry entries that require admin privilege e.g. HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Enum\MyRegistry What I want: 1. No entry to the control panel and yes i don't need an uninstallation. Question may arise, why I don't do it manually? Only for the admin privileged registry entr...

Django: The best practice to implement CRUD outside the contrib.admin

Hi all :) I'm currently developing a Blog project using Post model, which will be used by multiple authors. I want to make an admin/control-panel interface where each author of the Post can view the Post list the author created (so he won't see the Post created by the other authors), edit, and multiple-delete them. http://stackoverflo...

Dynamic filtering on FK in Django Admin

I have one Product Model that has a FK to price, as one product can contain many prices. But I also want to be able to pick which one of those many prices should be the actual price, therefore I have both price (in Product Model) and product (in Price Model) to accomplish this. Consider these following models: class Product(models.Model...

Django: serving ADMIN media files

Hi all, I've been successfully serving media files for the normal MEDIA files, but when I tried serving admin media files, I failed. please kindly help me locating the problem, as I've tried to troubleshoot the problem for several hours already with no luck (been googling too and read the django doc about serving static files as well). ...

Install Shield 2009 Premier: Abort installation if not admin user

Install Shield 2009 Premier: Basic MSI Project. I need to check if its admin user and if not showing a message box the installation will abort. How to do it ? ...

Django Model Inheritance and limit_choices_to

Can anyone tell me how i can limit the choices for the Page model which i inherit from in the following code? class CaseStudy(Page): """ An entry in a fancy picture flow widget for a case study page """ image = models.ForeignKey(Image, limit_choices_to={'is_active': True, 'category__code':'RP'}) def __unicode__(se...

How to check whether a user is in Administrator group in Install Shield 2009 Basic MSI Project

Install Shield 2009, Premier, Basic MSI Projcet:[I want to allow only administrator users to run setup] In the Releases->MyProductConfiguration->MyRelease->Setup.exe tab i chose "Required Execution Level" = "Invoker" and in General Information->Product Properties I put a Install condition as Condition = "AdminUser" Message = "Require ...