Re: Angular.js advanced tutorials?

2015-09-12 Thread ThomasTheDjangoFan
ular? 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 > <stefan.eich...@googlemail.com > wrote: > > I am searching for an angular.js tutoria

Re: What frontend-tools to use for a new CRM project? Shall I use Django OR switch to Meteor.js?

2015-09-11 Thread ThomasTheDjangoFan
#!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 thread in

Angular.js advanced tutorials?

2015-09-11 Thread ThomasTheDjangoFan
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

Re: Any good tutorials for django-rest-framework and React.Js?

2015-09-11 Thread ThomasTheDjangoFan
; 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 combi

Re: What frontend-tools to use for a new CRM project? Shall I use Django OR switch to Meteor.js?

2015-09-10 Thread ThomasTheDjangoFan
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

Any good tutorials for django-rest-framework and React.Js?

2015-09-10 Thread ThomasTheDjangoFan
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

Re: What frontend-tools to use for a new CRM project? Shall I use Django OR switch to Meteor.js?

2015-09-09 Thread ThomasTheDjangoFan
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

Re: API Google Calendar

2015-09-09 Thread ThomasTheDjangoFan
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

Re: What frontend-tools to use for a new CRM project? Shall I use Django OR switch to Meteor.js?

2015-09-09 Thread ThomasTheDjangoFan
l 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" <stefan.eich...@googlemail.com > > wrote: > >>

What frontend-tools to use for a new CRM project? Shall I use Django OR switch to Meteor.js?

2015-09-08 Thread ThomasTheDjangoFan
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

Re: Models.clean() how to raise ValidationError WITH error_code and show field_based errors in the Form-Template?

2015-08-03 Thread ThomasTheDjangoFan
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

Models.clean() how to raise ValidationError WITH error_code and show field_based errors in the Form-Template?

2015-07-30 Thread ThomasTheDjangoFan
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

Ajax CRUD: best practise for related models in one view?

2015-07-16 Thread ThomasTheDjangoFan
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

Re: How to DRY, define a set of model-fields and reuse them as multiple instances

2015-06-10 Thread ThomasTheDjangoFan
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 es

Re: How to DRY, define a set of model-fields and reuse them as multiple instances

2015-06-10 Thread ThomasTheDjangoFan
ect.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 want. >

How to DRY, define a set of model-fields and reuse them as multiple instances

2015-06-09 Thread ThomasTheDjangoFan
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

Help needed for big django project (crm+shop+cms+autoresponder). What apps shall I build on?

2015-06-02 Thread ThomasTheDjangoFan
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

How to share apps between projects?

2015-03-21 Thread ThomasTheDjangoFan
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

Django GUI Frameworks?

2015-02-24 Thread 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

Re: How to make a list-view sortable in frontend?

2015-02-18 Thread ThomasTheDjangoFan
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" < > stefan

How to make a list-view sortable in frontend?

2015-02-17 Thread ThomasTheDjangoFan
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

Re: How to make generic variables available in settings and contexts?

2015-01-18 Thread ThomasTheDjangoFan
t(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 confident that it >

How to make generic variables available in settings and contexts?

2015-01-18 Thread ThomasTheDjangoFan
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

Python: Assign variable in if statement?

2014-11-30 Thread ThomasTheDjangoFan
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

Re: Newbie: How to implement a app/module, which I can include from my html?

2014-11-27 Thread ThomasTheDjangoFan
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 >

Newbie: How to implement a app/module, which I can include from my html?

2014-11-27 Thread ThomasTheDjangoFan
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

Advice needed: Adaptive/Responsive Images in Django?

2014-11-19 Thread ThomasTheDjangoFan
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

Re: Need help with unique_together - on ForeignKey and Boolean field

2014-11-17 Thread ThomasTheDjangoFan
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 > <stefan.eich...@googlemail.com > wrote: >

Re: Need help with unique_together - on ForeignKey and Boolean field

2014-11-17 Thread ThomasTheDjangoFan
un, 16 Nov 2014 23:51:16 -0800 (PST) > ThomasTheDjangoFan <stefan.eich...@googlemail.com > 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 > >

Need help with unique_together - on ForeignKey and Boolean field

2014-11-17 Thread ThomasTheDjangoFan
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