Ladies and gentleman,
I am new to Django and would really love to have a solution for this:
My goal is to share generated settings between my views/models and
templates, without repeating myself.
Right now I have following code, where the problem appears:
#MY_CONTEXT_PROCESSOR.PY
from django.c
> Category.objects.get(is_main=True). Just make sure you only have one
> category with is_main set to True (if you change your mind on which
> category will be the main category, set all of the Categories to False, and
> then reset the new main category to True). If you are co
Hi 'ya,
I am new to Django and would like to create a *sortable ListView* (just
like the Lists in Django Admin) for an array of object-instances. The
objects themself are *non Django-Models* and are pre-populated in an array
before showing the view.
I've got a basic ListView working
(https://
able? If so, I've always used
> django-tables2, which includes the ability to have sorting in each of the
> columns via a generated link in the header row of any or all columns
> (up/down arrow, etc.).
>
> -James
> On Feb 17, 2015 2:43 PM, "ThomasTheDjangoFan" <
&
Hi ya,
I wonder if Django has any gui-frameworks which give common solutions for
handling frontend data, p.e. in combination with Twitter Bootstrap?
Some time ago I had a look at the YII PHP Framework and they have a great
solution called Yiibooster (check it out
at http://yiibooster.clevertech
Hi guys,
I developed some apps that I want share between 2 of my own projects.
What is the best practise for this?
I could just copy them over, but what if there needs to be a bug-fix?
Is there something like a 'private pip install'?
Kind regards
Thomas
--
You received this message because yo
Hi guys,
I am planning on a bigger django project with a lot of functionality.
The thing is that I have NO experience with existing django-apps that might
fit and definetly need your help.
Can you give me a hint which existing (and stable) django-apps I could use
as a foundation for my project
Hi guys,
now this is kind of hard for me to explain, I hope that somebody
understands what I actually want.
I am a python newbie and wonder if there is an easy solution.
*They say: DRY!!*
*My question is:How do a define an (abstract?) class including methods and
fieldsand then attach it to
djangoproject.com/en/1.8/topics/db/models/#abstract-base-classes
>
>
> On Tuesday, 9 June 2015 22:20:19 UTC+1, ThomasTheDjangoFan wrote:
>>
>> Hi guys,
>>
>> now this is kind of hard for me to explain, I hope that somebody
>> understands what I actually
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, ThomasTheDjangoF
Hi guys,
I am searching for a best-practise tutorial (or code-example) to show me
how to implement a frontend CRUD gui for related models - if possible: Ajax
based.
*Scenario:*
Let's say I have a contact-class.
1 contact can have n adresses.
The address is assigned to the contact via a foreign
Hi guys,
I'd like to only be able to assign many ProcutImages to a Product, but only
ONE Image as a default image per product
(ProductImage.is_default_image=True).
I can't get this to work correnctly on Django 1.7 with a db.sqlite3: With
the code below I can only assign ONE Image to a Product.
un, 16 Nov 2014 23:51:16 -0800 (PST)
> ThomasTheDjangoFan > wrote:
>
> > Hi guys,
> >
> > I'd like to only be able to assign many ProcutImages to a Product, but
> only
> > ONE Image as a default image per product
> > (ProductImage.is_default_image
e"
in the list.
Thanks a lot for your help! This was really inpiring! [image: smile.png]
Have a good one
Am Montag, 17. November 2014 15:12:50 UTC+1 schrieb Javier Guerra:
>
> On Mon, Nov 17, 2014 at 6:10 AM, ThomasTheDjangoFan
> > wrote:
> >
> > How would y
Hi guys,
do you have a tip for implementing adaptive (responsive) images in django?
Basically I want to server smaller images to mobile-users and bigger images
to desktop users.
I don't really now about best practices for SEO and Siteload-Performance.
Are there any apps that you can recon for t
Hi guys,
I want to display a block of category-links in various places of the
website. Those links are populated by making a Category.objects.all request
in a view. So right now it seems like each view that should contain those
links needs to put the "Category" Model in its context.
Now I woul
Oh ok.
so it would be something like:
in home.html
{% include 'category-list.html' %}
in category-lists.html
{% load those_categories %}
?
Am Donnerstag, 27. November 2014 09:55:50 UTC+1 schrieb James Bennett:
>
> The usual way would be to write a custom template tag that fetches the
> objec
Hi guys,
coming from php I am wondering if there is a way to do something like this
in Python/Django:
if variable = get_a_value_from_function():
new_stuff = variable
Of course I can use
variable = get_a_value_from_function()
if variable:
new_stuff = variable
But is there a shortcut simila
Hi guys,
I got a working model.clean() method that actually does a great job showing
the errors in the assigned html-form. *The view actually marks single
invalid fields red, which I find really important*.
*BUT:*
Now I want to *write a test* for that model and would love to *test for
error_co
Hi Jordi,
thanks a lot for your response!
Yeah definetly, BUT this error message could change during development and
I guess that is the reason why the django-docs recon you to set
error_codes. This why you wouldn't have to touch the tests when changing
the error-message but keeping the error
Hi guys,
I have invested quite a lot of time & energy into learning django and I
feel comfy using it. (I have studied the 2 Scoops, the Tdd book and got the
boook "Scaling Django" and "lightweight Django" right here next to me).
It feels like I finally got the right tool, BUT:
I am about to im
ick with JS just because "it's a small app with 10 users";
> if you see potential in your app, make it scalable. Maybe you will be able
> to sell it latel to bigger corps. ;)
>
> Best,
> Gergely
> On 9 Sep 2015 00:12, "ThomasTheDjangoFan" > wrote:
>
Hi Marcelo,
I am actually also planning to use it.
I have found https://code.google.com/p/django-gcal/
and will have a look at: https://www.djangopackages.com/grids/g/calendar/.
None of this I have checked out myself.
Let's keep us up to date with the progress.
Kind regards
Thomas
Am Donnerst
Yeah, I definetly hate to write Javascript and I really do NOT want to
write server code in it.
*The parts where I really need a javascript framework in my app are complex
forms:A page might consist of multiple forms bundled with formsets,
inline-forms and so on.*
*The question is:*Which js-
Hi guys,
I'm trying to get my head into how to use React.Js with Django.
I did the tutorial http://facebook.github.io/react/docs/tutorial.html
in combination with checking out
https://github.com/HorizonXP/react-tutorial-django,
which is an implementation if it with running django 1.6.
I'm havin
Hi guys,
on my journey to picking my js-framework I am now trying out React.js and I
opened this thread in search for good tutorials
https://groups.google.com/forum/#!topic/django-users/NxDOYhqqQJw .
I guess I'll also have a look at the angular stuff.
This really is about having good tutorials
; On Thursday, 10 September 2015 16:00:18 UTC+2, ThomasTheDjangoFan wrote:
>>
>> Hi guys,
>>
>> I'm trying to get my head into how to use React.Js with Django.
>>
>> I did the tutorial http://facebook.github.io/react/docs/tutorial.html
>> in combin
Hi guys,
I am searching for an angular.js tutorial that shows me how to do some
enhanced ui stuff:
1) What is best practise for have *multiple forms* (formsets with
inline-forms, *for example multiple adresses for a contact* as an
inline-form) on one page with angularjs and connect it to a mode
urce=footer#!topic/django-users/zH90eCGbDbQ
Thanks a lot for your help so far!
Kind regards
Thomas
Am Donnerstag, 10. September 2015 16:03:37 UTC+2 schrieb ThomasTheDjangoFan:
>
> Hi guys,
>
> on my journey to picking my js-framework I am now trying out React.js and
> I opened this t
t with angular? There must be a tutorial... or not?*
Kind regards
Thomas
Am Samstag, 12. September 2015 00:15:14 UTC+2 schrieb Javier Guerra:
>
> On Fri, Sep 11, 2015 at 5:03 PM, ThomasTheDjangoFan
> > wrote:
> > I am searching for an angular.js tutorial that shows me how t
30 matches
Mail list logo