Wow, terrific and comprehensive answer (as usual) Carl, thanks! I'll adjust my
approach accordingly, thanks very much!
--
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
I was afraid of that, glad I asked. Thanks for your input!
--
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
Depending on how crazy you need to get, you may be able to get away
with just styling the widget instances in the Form or ModelForm
definition:
https://docs.djangoproject.com/en/dev/ref/forms/widgets/#customizing-widget-instances
If you do want something crazy, you can also subclass the Select
Hi Jonathan,
On 06/10/2015 12:24 AM, Jonathan Barratt wrote:
> I'm interested to know what the community's opinions are on how best
> to package migrations with reusable apps (I'm thinking of the
> built-in migrations, but it seems the same principles would apply for
> pre-1.8 south migrations).
Hi Felix,
I just had a look at proxy models. Nice stuff, but it's not what I am
looking for.
I need to be able to give each "instance" an individual value.
Hm
Am Mittwoch, 10. Juni 2015 19:17:07 UTC+2 schrieb felix:
>
> El 10/06/15 12:33, ThomasTheDjangoFan escribió:
>
> Hi
Hi Jon,
Thanks for sharing your experience.
On 06/09/2015 07:25 PM, Jon Foster wrote:
> I've been involved with Django, on and off, since v0.96 or so. I love
> Django and think its the most productive way to build rich websites with
> custom defined content types. Throw in Django-CMS and things
OK, I will check this out. Thank you very much!
Em quarta-feira, 10 de junho de 2015 14:31:17 UTC-3, Vijay Khemlani
escreveu:
>
> Subclassing the django.forms.widgets.Select class and setting it as a
> widget for the form field.
>
> On Wed, Jun 10, 2015 at 2:13 PM,
>
Subclassing the django.forms.widgets.Select class and setting it as a
widget for the form field.
On Wed, Jun 10, 2015 at 2:13 PM, wrote:
> I decided to use {{ form.activity }} instead of that code above, but it is
> a bit strange, it should work in that way.
>
>
El 10/06/15 12:33, ThomasTheDjangoFan escribió:
Hi Bruno,
Abstract Base Models come close but they don't allow me to combine
multiple instances of the BaseModel in the DataHolderModel.
My goal is to store them all in one table without having to manually
add all the fields.
Any
I decided to use {{ form.activity }} instead of that code above, but it is
a bit strange, it should work in that way.
Now, I'm using django-widget-tweaks
(https://github.com/kmike/django-widget-tweaks) to add some attributes to
selected tag and it's working.
The reason why I wasn't this to
Hi Bruno,
Abstract Base Models come close but they don't allow me to combine multiple
instances of the BaseModel in the DataHolderModel.
My goal is to store them all in one table without having to manually add
all the fields.
Any suggestions?
Am Mittwoch, 10. Juni 2015 17:49:13 UTC+2
It looks like you want a Model to inherit from multiple base model?
Multiple time from the same one, with different parameters?
I'm not sure I understood what you are trying to do, but maybe abstract
models can help you?
This Article might help:
Django, Redis, Postgres, DataVolume in a Docker Environment:
https://realpython.com/blog/python/django-development-with-docker-compose-and-machine/
--
You received this message because you are subscribed to the Google Groups
"Django users" group.
To unsubscribe from
In my case this is not a Django bug.
The problem was that since 1.8 contenttypes started to have migrations. But
since the table already existed earlier, the migrations needed to be faked.
When faking the migrations, I used python manage.py migrate contenttypes
--fake which faked both 0001 and
If anyone running into this problem can figure out why the
contrib.contenttypes migration (0002_remove_content_type_name) is being
marked as applied but not actually run in the database, that will help
determine if this is a bug in Django or a problem elsewhere.
On Wednesday, June 10, 2015 at
Hi everyone,
I create this question on Stackoverflow about some doubts I have on
Django apps development process. Please visit
http://stackoverflow.com/questions/30743720/how-to-develop-include-a-django-custom-reusable-app-in-a-new-project-are-there
Thanks in advance.
--
You received this
I would also recommend checking out Heroku for a quicker test release. Down the
line, when you want more control over the system administration, you can save a
bit of money by building out your own services.
> On Jun 10, 2015, at 8:35 AM, Vijay Khemlani wrote:
>
> Wihtout
Wihtout knowing anything about your project, I think going RedHat + Oracle
might be a bit overkill, especially Oracle since it is a mess to configure
and tune.
Have you considered CentOS as an alternative? same binaries and libraries
as RedHat but completely free, and also easier to deploy in the
You can add methods to your model class
class Container(models.Model):
name = models.CharField(max_length=128)
capacity = models.IntegerField()
contains = models.IntegerField()
def usage_percentage():
return 100.0 * self.contains / self.capacity
And in your template
{%
I am getting the same error on Django v1.8.2 after migrating from v1.7.7
The underlying error is this-
django.db.utils.IntegrityError: null value in column "name" violates not-
> null constraint
> DETAIL: Failing row contains (39, null, app_name, model_name).
>
>
On Friday, April 17, 2015 at
Hi.
Total Django Newbie here... and pretty new to Python too.
Anyway, I have this simple problem, and I've been reading documentation all
afternoon but just can't come up with a simple solution.
How can I display calculated values from the Model vales store in the
database?
Like, a percentage
Hello,
I was trying to follow
https://docs.djangoproject.com/en/1.8/howto/auth-remote-user/.
If I enable django.contrib.auth.middleware.RemoteUserMiddleware, even if I
set AUTHENTICATION_BACKEND to contain both RemoteUserBackend and
ModelBackend, my test cases stop working. However, using the
That’s exactly what I was doing, just haven’t had the time yet to share my
experience :)
2015-06-10 11:55 GMT+02:00 'Tom Evans' via Django users <
django-users@googlegroups.com>:
> On Tue, Jun 9, 2015 at 10:07 PM, Gergely Polonkai
> wrote:
> > Hello,
> >
> > I’m about to
We are a group of developers that are reasonable new to the Django web
framework. We've managed to build an application that is currently housed
in PythonAnywhere and are now at the stage where we would like to conduct
some performance testing.
Our current plan is to rent some space from a VPN
On Tue, Jun 9, 2015 at 10:07 PM, Gergely Polonkai wrote:
> Hello,
>
> I’m about to use the test server with REMOTE_USER based logins. I already
> know how to set it up with my Apache based server, but I can see no way of
> doing the same with the dev server (manage.py
Hi,
I created a multi lingual site in Django 1.7.1 where the user can change
the language by means of a dropdown menu at the top of the site.
The urls are www.site.com/page. The page view checks the language, and
then loads the correct templates which are named the same as the page.
The
usually people will upgrade using pip install -U
if your lib needs more than that it should be the least complicated
possible, I believe making people make their own migrations would be a
burden
On Wed, Jun 10, 2015 at 9:24 AM, Jonathan Barratt <
jonathan.barr...@gmail.com> wrote:
> Hi All,
>
>
Hi All,
I'm interested to know what the community's opinions are on how best to package
migrations with reusable apps (I'm thinking of the built-in migrations, but it
seems the same principles would apply for pre-1.8 south migrations).
My current approach is to squash all schema migrations
28 matches
Mail list logo