Re: django admin interface

2016-11-18 Thread Derek
Not a direct answer, but its much easier to use the in-built options to 
extend admin actions:
https://docs.djangoproject.com/en/1.10/ref/contrib/admin/actions/

Otherwise you will probably need to extend/override the admin template to 
add the code&link for your button; e.g. see:
http://stackoverflow.com/questions/6583877/how-to-override-and-extend-basic-django-admin-templates
(read all the answers as the approach has changed over time)


On Wednesday, 16 November 2016 20:06:02 UTC+2, Sandeep Jalagam wrote:
>
>  how can i add custom action button beside add button?  
>

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-users+unsubscr...@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/7bab0340-c10c-4c3c-b42a-b008115758bf%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: django admin interface - how to enable adding new entries to foreign key-linked dropdown menu?

2014-10-09 Thread Russell Keith-Magee
Hi Eliezer,

The trick is to add a ModelAdmin for Exercise.

The obvious consequence of this is that you'll get a "top level" menu
option to add exercises. However, a side effect is that everywhere that you
have a model with a foreign key to exercise (like in your Segment inline),
you'll get a little green "plus" sign next to the foreign key selector. If
you click on that plus, you'll get a popup that will let you create a new
Exercise. The popup will have the same layout as the "Add Exercise" page
you get if you go through the top level menu, but without the navigation
elements.

When you hit "save" on the new Exercise, the foreign key you clicked on
will be updated to point at the newly added exercise instance.

Yours,
Russ Magee %-)


On Wed, Oct 8, 2014 at 10:02 AM, Eliezer Kanal  wrote:

> I'm writing a rudimentary exercise app in django, with the following table
> structure:
>
> Routine Exercise Segment
> = = =
> routine_name exercise_name routine_id (fk)
> routine_id exercise_id exercise_id (fk)
> order
> duration
>
> * (fk) = foreign key
>
> In practice, this looks as follows:
>
>
> 
> A Routine contains numerous Segments, and each segment contains one
> Exercise, the order number (where the segment appears in the routine –
> first, second, third, etc), and the duration of that segment.
>
> My question is, is there an way to allow someone to add a new exercise
> type from the "Add routine" view? I.e., if I'm making a new routine, I
> don't necessarily want to have to drop out and go to the Exercise table
> view to add a new exercise to the list. Thanks in advance!
>
> Elli
>
>
> *Note: This was cross-posted to StackOverflow
> ,
> with very few views there. I thought I'd try here as well.*
>
> --
> You received this message because you are subscribed to the Google Groups
> "Django users" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to django-users+unsubscr...@googlegroups.com.
> To post to this group, send email to django-users@googlegroups.com.
> Visit this group at http://groups.google.com/group/django-users.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/django-users/4955d625-d898-4fdf-b186-a8db536363b9%40googlegroups.com
> 
> .
> For more options, visit https://groups.google.com/d/optout.
>

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-users+unsubscr...@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at http://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CAJxq849nvs8Bu3NSv3gwXRfx6tjTiXX%3DOkMsiQP_uRX59nQtBg%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: django admin interface

2010-02-17 Thread Andy Cottell
I have found the source of the problem. When running the built in dev
server, I used the command "python manage.py testserver". This command
seems to create a new database, with no user records, and run the
server using that. This means that loging in is impossible as there
are no users to log in as. Running the command "python manage.py
runserver" uses the database created when you run "python manage.py
syncdb" and create a superuser, so you can login successfully.

Thanks for all of your suggestions,
Andy

On 8 Feb, 15:37, Russell Keith-Magee  wrote:
> On Mon, Feb 8, 2010 at 10:42 PM, Andy Cottell  wrote:
> >> > > I am new to django, and have started building a project in it. I have
> >> > > tried to use theadmininterface with the project am having issues
> >> > > logging in. I have setup the interface as instruced in the django
> >> > > tutorial part 2, and created a new superuser and cannot use it to log
> >> > > in. The user is always rejected with "Please enter a correct username
> >> > > and password. Note that both fields are case-sensitive." I am using an
> >> > > SQlite3 database.
> > Bump!
>
> I'm really not sure what answer you are expecting. The error message
> is telling you what is wrong - the username/password combination you
> are using isn't valid.
>
> Either:
>  * You aren't using the username you specified,
>  * You aren't using the password you specified, or
>  * You haven't created a superuser account
>
> The only source of confusion I can think that might exist is if you
> think that once you have created a superuser for the tutorial, you
> don't need to create one for the superuser for your own project.
>
> By way of diagnosis beyond this, you haven't given us much to work
> with. Have you been able to successfully complete the tutorial? How
> did you go about creating your superuser account (noting that Tutorial
> 2 doesn't actually contain *any* instructions for creating a superuser
> - the superuser is created in Tutorial 1)? Have you tried creating
> *another* superuser account (using the instructions linked in Tutorial
> 2)?
>
> Yours,
> Russ Magee %-)

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-us...@googlegroups.com.
To unsubscribe from this group, send email to 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.



Re: django admin interface

2010-02-08 Thread Russell Keith-Magee
On Mon, Feb 8, 2010 at 10:42 PM, Andy Cottell  wrote:
>> > > I am new to django, and have started building a project in it. I have
>> > > tried to use theadmininterface with the project am having issues
>> > > logging in. I have setup the interface as instruced in the django
>> > > tutorial part 2, and created a new superuser and cannot use it to log
>> > > in. The user is always rejected with "Please enter a correct username
>> > > and password. Note that both fields are case-sensitive." I am using an
>> > > SQlite3 database.

> Bump!

I'm really not sure what answer you are expecting. The error message
is telling you what is wrong - the username/password combination you
are using isn't valid.

Either:
 * You aren't using the username you specified,
 * You aren't using the password you specified, or
 * You haven't created a superuser account

The only source of confusion I can think that might exist is if you
think that once you have created a superuser for the tutorial, you
don't need to create one for the superuser for your own project.

By way of diagnosis beyond this, you haven't given us much to work
with. Have you been able to successfully complete the tutorial? How
did you go about creating your superuser account (noting that Tutorial
2 doesn't actually contain *any* instructions for creating a superuser
- the superuser is created in Tutorial 1)? Have you tried creating
*another* superuser account (using the instructions linked in Tutorial
2)?

Yours,
Russ Magee %-)

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-us...@googlegroups.com.
To unsubscribe from this group, send email to 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.



Re: django admin interface

2010-02-08 Thread Andy Cottell
Bump!

On Feb 2, 1:48 am, Andy Cottell  wrote:
> I have done this, and created an superuser when prompted. However the
> login still fails with the same error.
>
> Here is the urls.py:
>
> from django.conf.urls.defaults import *
>
> # Uncomment the next two lines to enable theadmin:
> from django.contrib importadminadmin.autodiscover()
>
> urlpatterns = patterns('',
>     # Example:
>     # (r'^microtill/', include('microtill.foo.urls')),
>
>     # Uncomment theadmin/doc line below and add
> 'django.contrib.admindocs'
>     # to INSTALLED_APPS to enableadmindocumentation:
>     # (r'^admin/doc/', include('django.contrib.admindocs.urls')),
>
>     # Uncomment the next line to enable theadmin:
>     (r'^admin/', include(admin.site.urls)),
> )
>
> Here is the settings.py:
>
> # Django settings for microtill project.
>
> DEBUG = True
> TEMPLATE_DEBUG = DEBUG
>
> ADMINS = (
>     # ('Your Name', 'your_em...@domain.com'),
> )
>
> MANAGERS = ADMINS
>
> DATABASE_ENGINE = 'sqlite3'           # 'postgresql_psycopg2',
> 'postgresql', 'mysql', 'sqlite3' or 'oracle'.
> DATABASE_NAME = 'till.db'             # Or path to database file if
> using sqlite3.
> DATABASE_USER = ''             # Not used with sqlite3.
> DATABASE_PASSWORD = ''         # Not used with sqlite3.
> DATABASE_HOST = ''             # Set to empty string for localhost.
> Not used with sqlite3.
> DATABASE_PORT = ''             # Set to empty string for default. Not
> used with sqlite3.
>
> # Local time zone for this installation. Choices can be found here:
> #http://en.wikipedia.org/wiki/List_of_tz_zones_by_name
> # although not all choices may be available on all operating systems.
> # If running in a Windows environment this must be set to the same as
> your
> # system time zone.
> TIME_ZONE = 'America/Chicago'
>
> # Language code for this installation. All choices can be found here:
> #http://www.i18nguy.com/unicode/language-identifiers.html
> LANGUAGE_CODE = 'en-us'
>
> SITE_ID = 1
>
> # If you set this to False, Django will make some optimizations so as
> not
> # to load the internationalization machinery.
> USE_I18N = True
>
> # Absolute path to the directory that holds media.
> # Example: "/home/media/media.lawrence.com/"
> MEDIA_ROOT = ''
>
> # URL that handles the media served from MEDIA_ROOT. Make sure to use
> a
> # trailing slash if there is a path component (optional in other
> cases).
> # Examples: "http://media.lawrence.com";, "http://example.com/media/";
> MEDIA_URL = ''
>
> # URL prefix foradminmedia -- CSS, JavaScript and images. Make sure
> to use a
> # trailing slash.
> # Examples: "http://foo.com/media/";, "/media/".
> ADMIN_MEDIA_PREFIX = '/media/'
>
> # Make this unique, and don't share it with anybody.
>
> # List of callables that know how to import templates from various
> sources.
> TEMPLATE_LOADERS = (
>     'django.template.loaders.filesystem.load_template_source',
>     'django.template.loaders.app_directories.load_template_source',
> #     'django.template.loaders.eggs.load_template_source',
> )
>
> MIDDLEWARE_CLASSES = (
>     'django.middleware.common.CommonMiddleware',
>     'django.contrib.sessions.middleware.SessionMiddleware',
>     'django.contrib.auth.middleware.AuthenticationMiddleware',
> )
>
> ROOT_URLCONF = 'microtill.urls'
>
> TEMPLATE_DIRS = (
>     # Put strings here, like "/home/html/django_templates" or "C:/www/
> django/templates".
>     # Always use forward slashes, even on Windows.
>     # Don't forget to use absolute paths, not relative paths.
> )
>
> INSTALLED_APPS = (
>     'django.contrib.auth',
>     'django.contrib.contenttypes',
>     'django.contrib.sessions',
>     'django.contrib.sites',
>     'django.contrib.admin',
>     'microtill.stock',
> )
>
> On 2 Feb, 01:39, bedros <2bed...@gmail.com> wrote:
>
>
>
> > make sure you do syncdb to create database tables before you can
> > actually use theadmininterface for the first time.
>
> > try
>
> > python ./manage.py syncdb
>
> > On Feb 1, 4:41 pm, Andy Cottell  wrote:
>
> > > I am new to django, and have started building a project in it. I have
> > > tried to use theadmininterface with the project am having issues
> > > logging in. I have setup the interface as instruced in the django
> > > tutorial part 2, and created a new superuser and cannot use it to log
> > > in. The user is always rejected with "Please enter a correct username
> > > and password. Note that both fields are case-sensitive." I am using an
> > > SQlite3 database.
>
> > > Please help as I really like django as a framework, and would love to
> > > use it for my projects, but theadmininterface not working is a deal-
> > > breaker.- Hide quoted text -
>
> - Show quoted text -

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-us...@googlegroups.com.
To unsubscribe from this group, send email to 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.g

Re: django admin interface

2010-02-01 Thread Andy Cottell
I have done this, and created an superuser when prompted. However the
login still fails with the same error.

Here is the urls.py:

from django.conf.urls.defaults import *

# Uncomment the next two lines to enable the admin:
from django.contrib import admin
admin.autodiscover()

urlpatterns = patterns('',
# Example:
# (r'^microtill/', include('microtill.foo.urls')),

# Uncomment the admin/doc line below and add
'django.contrib.admindocs'
# to INSTALLED_APPS to enable admin documentation:
# (r'^admin/doc/', include('django.contrib.admindocs.urls')),

# Uncomment the next line to enable the admin:
(r'^admin/', include(admin.site.urls)),
)

Here is the settings.py:

# Django settings for microtill project.

DEBUG = True
TEMPLATE_DEBUG = DEBUG

ADMINS = (
# ('Your Name', 'your_em...@domain.com'),
)

MANAGERS = ADMINS

DATABASE_ENGINE = 'sqlite3'   # 'postgresql_psycopg2',
'postgresql', 'mysql', 'sqlite3' or 'oracle'.
DATABASE_NAME = 'till.db' # Or path to database file if
using sqlite3.
DATABASE_USER = '' # Not used with sqlite3.
DATABASE_PASSWORD = '' # Not used with sqlite3.
DATABASE_HOST = '' # Set to empty string for localhost.
Not used with sqlite3.
DATABASE_PORT = '' # Set to empty string for default. Not
used with sqlite3.

# Local time zone for this installation. Choices can be found here:
# http://en.wikipedia.org/wiki/List_of_tz_zones_by_name
# although not all choices may be available on all operating systems.
# If running in a Windows environment this must be set to the same as
your
# system time zone.
TIME_ZONE = 'America/Chicago'

# Language code for this installation. All choices can be found here:
# http://www.i18nguy.com/unicode/language-identifiers.html
LANGUAGE_CODE = 'en-us'

SITE_ID = 1

# If you set this to False, Django will make some optimizations so as
not
# to load the internationalization machinery.
USE_I18N = True

# Absolute path to the directory that holds media.
# Example: "/home/media/media.lawrence.com/"
MEDIA_ROOT = ''

# URL that handles the media served from MEDIA_ROOT. Make sure to use
a
# trailing slash if there is a path component (optional in other
cases).
# Examples: "http://media.lawrence.com";, "http://example.com/media/";
MEDIA_URL = ''

# URL prefix for admin media -- CSS, JavaScript and images. Make sure
to use a
# trailing slash.
# Examples: "http://foo.com/media/";, "/media/".
ADMIN_MEDIA_PREFIX = '/media/'

# Make this unique, and don't share it with anybody.


# List of callables that know how to import templates from various
sources.
TEMPLATE_LOADERS = (
'django.template.loaders.filesystem.load_template_source',
'django.template.loaders.app_directories.load_template_source',
# 'django.template.loaders.eggs.load_template_source',
)

MIDDLEWARE_CLASSES = (
'django.middleware.common.CommonMiddleware',
'django.contrib.sessions.middleware.SessionMiddleware',
'django.contrib.auth.middleware.AuthenticationMiddleware',
)

ROOT_URLCONF = 'microtill.urls'

TEMPLATE_DIRS = (
# Put strings here, like "/home/html/django_templates" or "C:/www/
django/templates".
# Always use forward slashes, even on Windows.
# Don't forget to use absolute paths, not relative paths.
)

INSTALLED_APPS = (
'django.contrib.auth',
'django.contrib.contenttypes',
'django.contrib.sessions',
'django.contrib.sites',
'django.contrib.admin',
'microtill.stock',
)


On 2 Feb, 01:39, bedros <2bed...@gmail.com> wrote:
> make sure you do syncdb to create database tables before you can
> actually use the admin interface for the first time.
>
> try
>
> python ./manage.py syncdb
>
> On Feb 1, 4:41 pm, Andy Cottell  wrote:
>
> > I am new to django, and have started building a project in it. I have
> > tried to use the admin interface with the project am having issues
> > logging in. I have setup the interface as instruced in the django
> > tutorial part 2, and created a new superuser and cannot use it to log
> > in. The user is always rejected with "Please enter a correct username
> > and password. Note that both fields are case-sensitive." I am using an
> > SQlite3 database.
>
> > Please help as I really like django as a framework, and would love to
> > use it for my projects, but the admin interface not working is a deal-
> > breaker.

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-us...@googlegroups.com.
To unsubscribe from this group, send email to 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.



Re: django admin interface

2010-02-01 Thread bedros
make sure you do syncdb to create database tables before you can
actually use the admin interface for the first time.

try

python ./manage.py syncdb



On Feb 1, 4:41 pm, Andy Cottell  wrote:
> I am new to django, and have started building a project in it. I have
> tried to use the admin interface with the project am having issues
> logging in. I have setup the interface as instruced in the django
> tutorial part 2, and created a new superuser and cannot use it to log
> in. The user is always rejected with "Please enter a correct username
> and password. Note that both fields are case-sensitive." I am using an
> SQlite3 database.
>
> Please help as I really like django as a framework, and would love to
> use it for my projects, but the admin interface not working is a deal-
> breaker.

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-us...@googlegroups.com.
To unsubscribe from this group, send email to 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.



Re: Django Admin interface and filter by value

2010-01-24 Thread Peter Bengtsson
Sounds like something you'd have to do with javascript by extending
the admin interface's templates.
Any other default values are best done by settings up signals for your
User class.

On a more general, yet important note, I would strongly advice against
making your own User model unless you really know what you're doing.
Use the User model inside Django and just let that be what it is. All
other bits and pieces such as MacAddress is then put in a user profile
class. There's good documentation on how to control your user profiles
and how that works.

On Jan 22, 11:42 am, onorua  wrote:
> I have two models:
>
> class User(models.Model):
>
>     LoginName = models.CharField('login', max_length=50)
>     Email = models.EmailField('e-mail', blank=True)
>     FirstName = models.CharField(max_length=50)
>     LastName = models.CharField(max_length=50)
>     IpAddress = models.IPAddressField(unique=True)
>     MacAddress = models.CharField(max_length=17)
>     UserAddress = models.CharField(max_length=250)
>     Switch = models.ForeignKey('Switch')
>     Port = models.ForeignKey('Port')
>
> class Switch(models.Model):
>     SwitchTypes = (
>         ('N', 'Non managed'),
>         ('M', 'Managed'),
>         ('3', '3 Layer'),
>         )
>     SwitchSNMP = (
>         ('Y', 'Yes'),
>         ('N', 'No'),
>         )
>     Name = models.CharField( max_length=50)
>     IpAddress = models.IPAddressField('unique=True)
>     Location = models.CharField(max_length=250)
>     Manufacture = models.CharField(max_length=50)
>     Model = models.CharField(max_length=50)
>     PortsNumber = models.IntegerField()
>     Type = models.CharField(max_length=1, choices=SwitchTypes)
>     SNMP_enable = models.CharField( max_length=1, choices=SwitchSNMP)
>     SNMP_group = models.CharField(max_length=50, blank=True)
>     def __unicode__(self):
>         return ('%s %s' % (self.Name, self.IpAddress))
>
> class Port(models.Model):
>     MediaType = (
>         ('C', 'Copper'),
>         ('F', 'Fiber'),
>         )
>
>     Type = models.CharField(max_length=1, choices=MediaType)
>     MaxSpeed = models.SmallIntegerField(default = 100)
>     CurSpeed = models.SmallIntegerField(default=100)
>     Switch = models.ForeignKey('Switch')
>     PortNum = models.SmallIntegerField()
>     Description =  models.CharField(max_length=250, blank=True)
>
>     def __unicode__(self):
>         return ('%s ' % (self.PortNum))
>
> I would like to have following:
> 1. When I create a new user, I choose switch from the list of
> available switches, and when I go to the Port, it will automatically
> shows only Ports for this particular switch.
> 2. When I add a new Switch, and put the port number as 16, they would
> be automatically crated with the default values.
>
> Is it possible to do? Could you please point me out on the elegant
> solution.

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-us...@googlegroups.com.
To unsubscribe from this group, send email to 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.



Re: Django Admin interface crashes with.

2009-11-12 Thread Matt Schinckel
On Nov 13, 1:40 pm, Rick Caudill  wrote:
> I do have non-ascii data in my database.  That is allowed, right???

Yeah, in general. What appears to be happening here (and Karen is
right, we need more to go on), but data that is being loaded into a
DecimalField contains non-ascii data.

Matt.

--

You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-us...@googlegroups.com.
To unsubscribe from this group, send email to 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=.




Re: Django Admin interface crashes with.

2009-11-12 Thread Karen Tracey
On Thu, Nov 12, 2009 at 10:40 PM, Rick Caudill  wrote:

> I do have non-ascii data in my database.  That is allowed, right???
>
>
Certainly.  Perhaps if you gave a few more clues someone could help.

What are you doing in the admin interface when the exception is raised?

If the activity is obviously tied to a particular model (adding, changing),
how is that model defined?  If you have specified any customized forms for
the admin for this model, they would be helpful to see also.

What is the full traceback that goes with the error?

Karen

--

You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-us...@googlegroups.com.
To unsubscribe from this group, send email to 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=.




Re: Django Admin interface crashes with.

2009-11-12 Thread Rick Caudill
I do have non-ascii data in my database.  That is allowed, right???



On Thu, Nov 12, 2009 at 6:55 PM, Matt Schinckel wrote:

> On Nov 13, 7:06 am, Rick Caudill  wrote:
> > Hi Everyone,
> >
> > This is my first time posting but I have been using Django for about a
> > year now and love it.  I am having one problem that I can't solve
> > though and it is taking too long so I thought I would ask and see if
> > someone can help me.  So I have a Admin interface that is crashing.
> > The error that I am getting is:
> >
> > DjangoUnicodeDecodeError: 'ascii' codec can't decode byte 0xc3 in
> > position 5: ordinal not in range(128). You passed in
> >  ( > 'django.forms.forms.BoundField'>)
> >
> > Can anyone help with this
>
> It looks like you have a non-ascii character in your source file, or
> some data that is in your database.
>
> Matt.
>
> --
>
> You received this message because you are subscribed to the Google Groups
> "Django users" group.
> To post to this group, send email to django-us...@googlegroups.com.
> To unsubscribe from this group, send email to
> django-users+unsubscr...@googlegroups.com
> .
> For more options, visit this group at
> http://groups.google.com/group/django-users?hl=.
>
>
>

--

You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-us...@googlegroups.com.
To unsubscribe from this group, send email to 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=.




Re: Django Admin interface crashes with.

2009-11-12 Thread Matt Schinckel
On Nov 13, 7:06 am, Rick Caudill  wrote:
> Hi Everyone,
>
> This is my first time posting but I have been using Django for about a
> year now and love it.  I am having one problem that I can't solve
> though and it is taking too long so I thought I would ask and see if
> someone can help me.  So I have a Admin interface that is crashing.
> The error that I am getting is:
>
> DjangoUnicodeDecodeError: 'ascii' codec can't decode byte 0xc3 in
> position 5: ordinal not in range(128). You passed in
>  ( 'django.forms.forms.BoundField'>)
>
> Can anyone help with this

It looks like you have a non-ascii character in your source file, or
some data that is in your database.

Matt.

--

You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-us...@googlegroups.com.
To unsubscribe from this group, send email to 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=.




Re: Django admin interface for Web service

2009-06-24 Thread Kusako

Thanks for the link. This looks pretty interesting.
Unfortunately the service I have to access isn't RESTful, so it
doesn't look like I can make of roa easily.

-markus

On Jun 24, 1:33 pm, nautilebleu  wrote:
> django-roa seems to be the way to go if your service is RESTful
>
> http://bitbucket.org/david/django-roa/
>
> Goulwen
>
> On Jun 23, 6:39 pm, Kusako  wrote:
>
> > Hi-
>
> > I need to access an XMLRPC web service from the Django admin
> > interface. Basically what I need is some create forms that will send
> > data to the web service instead of storing to a database.
> > As I'm  somewhat new to Django I'm wondering about the best way to
> > accomplish this. Should I just create custom views for the create
> > forms and link them to the admin site? Or is there a way to use
> > models, but instead of storing them in the database, send them to the
> > web service?
>
> > Thanks for any help,
>
> > -markus
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-users@googlegroups.com
To unsubscribe from this group, send email to 
django-users+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~--~~~~--~~--~--~---



Re: Django admin interface for Web service

2009-06-24 Thread nautilebleu

django-roa seems to be the way to go if your service is RESTful

http://bitbucket.org/david/django-roa/

Goulwen

On Jun 23, 6:39 pm, Kusako  wrote:
> Hi-
>
> I need to access an XMLRPC web service from the Django admin
> interface. Basically what I need is some create forms that will send
> data to the web service instead of storing to a database.
> As I'm  somewhat new to Django I'm wondering about the best way to
> accomplish this. Should I just create custom views for the create
> forms and link them to the admin site? Or is there a way to use
> models, but instead of storing them in the database, send them to the
> web service?
>
> Thanks for any help,
>
> -markus

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-users@googlegroups.com
To unsubscribe from this group, send email to 
django-users+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~--~~~~--~~--~--~---