Good Morning,
I am trying to save data in the table using cleaned data by get and post
method in the view.
How will I trace step by step the movement of data which is to be saved in
the database?
My problem is there is know error while running the program. But i did not
see any data saved in the
Hi everyone,
I am using django-userena and extend the form class to add some of my own
fields. I followed
the demo and still get the above error. Anyone know what I am doing wrong?
class SignupFormExtra(SignupForm):
"""
A form to demonstrate how to add extra fields to the signup form, in
ok.
On Wednesday, April 15, 2015 at 3:39:26 PM UTC-5, Vijay Khemlani wrote:
>
> tblEntryObj seems to be an instance of your model, it is not a dictionary,
> so normally it wouldn't have a "keys" method.
>
> On Wed, Apr 15, 2015 at 5:32 PM, Henry Versemann > wrote:
>
>> Vijay,
>>
>> I tried your
tblEntryObj seems to be an instance of your model, it is not a dictionary,
so normally it wouldn't have a "keys" method.
On Wed, Apr 15, 2015 at 5:32 PM, Henry Versemann
wrote:
> Vijay,
>
> I tried your method, and while it got me the table class that I wanted,
> for some reason when I try to ge
Vijay,
I tried your method, and while it got me the table class that I wanted, for
some reason when I try to get into the actual list of entries in the
desired table, I can't seem to get to either the keys or values of any of
the list objects.
So I'm not sure what's going on.
Here's some conden
Thanks for the help Stephen.
On Wednesday, April 15, 2015 at 11:53:09 AM UTC-5, Stephen Butler wrote:
>
> Or, if you know all the Model classes are in the same module that
> you've imported, it should be as easy as:
>
> from myapp import models
>
> model_class = getattr(models, tableName)
>
>
Hi all, does anyone knows why ./manage.py runserver copy the static folder
like if I run ./manage.py collectstatic ?
It began to happen since django 1.7
Thanks.
--
You received this message because you are subscribed to the Google Groups
"Django users" group.
To unsubscribe from this group
You can use get_model
from django.db.models.loading import get_model
YourModel = get_model('your_app', tableName)
On Wed, Apr 15, 2015 at 2:01 PM, Tim Chase
wrote:
> On 2015-04-15 09:45, Henry Versemann wrote:
> > My problem is since the logic won't know which tables will be in
> > the incomin
On 2015-04-15 09:45, Henry Versemann wrote:
> My problem is since the logic won't know which tables will be in
> the incoming list I need to try to reference the entries in each
> table using some kind of evaluated version of a variable containing
> the name of each table, as I iterate through the
Or, if you know all the Model classes are in the same module that
you've imported, it should be as easy as:
from myapp import models
model_class = getattr(models, tableName)
On Wed, Apr 15, 2015 at 11:50 AM, Stephen J. Butler
wrote:
> Classes (MyModel) are attributes of the module (myapp.models
Classes (MyModel) are attributes of the module (myapp.models). No
reason to use eval. You can get the module from importlib and then the
class from using getattr() on the module.
http://stackoverflow.com/questions/10773348/get-python-class-object-from-string
On Wed, Apr 15, 2015 at 11:45 AM, He
>>> from django.db.models import models
>>> class MarketPrice(models.Model):
market = models.CharField(max_length=30)
crop = models.CharField(max_length=30)
price = models.PositiveSmallIntegerField()
date = models.DateField()
def __str__(self):
r
I have an incoming list of DB table names associated with my application. I
want to iterate through this list of table names getting all of the
entries for each table and then print some data from each tables' entry to
a file. I've tried to write this so I can use it for as many
app-associated
https://docs.djangoproject.com/en/1.8/topics/cache/#dummy-caching-for-development
On Wed, Apr 15, 2015 at 8:47 AM, Joe wrote:
> How do you set it to the dummy cache?
>
> On Saturday, April 11, 2015 at 2:06:10 PM UTC-7, Stephen Butler wrote:
>>
>> What happens if you disable all caching (try sett
How do you set it to the dummy cache?
On Saturday, April 11, 2015 at 2:06:10 PM UTC-7, Stephen Butler wrote:
>
> What happens if you disable all caching (try setting it to the dummy
> cache).
>
> Also, you really shouldn't put your python code in your server's
> DocumentRoot. There's absolutely
On Monday, April 13, 2015 at 5:16:40 PM UTC-5, Patrick Lemiuex wrote:
>
> It's about time, the django admin tool should support twitter bootstrap
> markups and styling. This is the third django project where I've had to
> deal with custom form widgets because the admin tool supports kind of an
>
Hi Filippo,
You can check is form valid or not, then if valid save related model and
then add M2M objects, like this:
if form.is_valid():
model_instance = form.save()
for tag in model_instance.tags.all():
t, created = Tag.objects.get_or_create(author=request.user, title=tag.title)
mod
First of all, why are you not using the default views that django provides?
In your case all you have to do is subclass the View class
(django.views.generic.View) to get all the functionality that you require
(i.e. you get a post and get method that will automatically be called).
Second of all, ch
Hey Casey,
I followed this doc, but still I am not getting this working.
Do I need to do anything else to get it work?
On Tuesday, 8 March 2011 19:11:32 UTC+5:30, Casey wrote:
>
> Have you seen this yet:
>
>
> http://docs.djangoproject.com/en/dev/topics/class-based-views/#decorating-class-based-
19 matches
Mail list logo