Re: AWS FOR STEEL PLATE TO SUS316L

2014-12-26 Thread Russell Keith-Magee
Hi MajiD, Are you sure you've got the right mailing list? It sounds like you're talking about arc welding - this is a mailing list discussing a computer software framework called Django. If your question *is* about Django - you're going to need to explain your acronyms, because AWS is the only o

AWS FOR STEEL PLATE TO SUS316L

2014-12-26 Thread M.suffian aris
Dear Sir, I'm new in this group, can you advise to me which one AWS / SWPS for STEEL PLATE EH36 combine to SUS316L ( FCAW ). your full co-operation very appreciated, regard, MajiD -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubsc

Re: Accessing Models After get_model()

2014-12-26 Thread llanitedave
On Monday, December 22, 2014 7:51:58 PM UTC-8, Collin Anderson wrote: > > Hi, > > The model name is hidden in model.__name__ or model._meta.model_name, and > you can't access attributes starting with underscore in templates. > > This might work: > > from django.db.models import get_app, get_model

Re: How properly render pages with video

2014-12-26 Thread Berker Peksağ
On Thu, Dec 25, 2014 at 1:28 PM, Artie wrote: > The project is online English video lessons. I have a 'classroom' - html > page with HTML5 video player in center of it. Videos being stored in media > folder on same level as project. > > What I want is to render video from media folder to 'classroo

Re: Template Not Applying - Django Polls Tutorial (Newbie Question)

2014-12-26 Thread Collin Anderson
Hi, This one comes up a lot. It's confusing because {% block title %} is the _html_ , the title of the browser tab. You want to change {% block branding %}. Collin On Tuesday, December 23, 2014 5:18:49 PM UTC-6, Ken Wayne wrote: > > Hmmm, that is one of the directories I tried, > C:\Python34

Re: Poll Tutorial (for Django 1.7) Files Available?

2014-12-26 Thread Collin Anderson
Hi, I ran through the tutorial in August and made a repo of it: https://github.com/collinanderson/mysite/commits/master Collin On Monday, December 22, 2014 5:06:35 PM UTC-6, Ken Wayne wrote: > > I'm trying to work through the Poll Tutorial and I've run into some > problems. I'd like to compar

Re: Database queries location

2014-12-26 Thread Collin Anderson
Hi, That should all be possible. from django.db import models class MyManager(models.Manager): def complex_query_with_multiple_tables(self, mutiple, post, values): # put your query here. Collin On Tuesday, December 23, 2014 12:49:49 PM UTC-6, pythonista wrote: > > Can this be used

Re: Django url issues, append slash and case insensitvity

2014-12-26 Thread Collin Anderson
Hi, waitlist/add_account/ redirecting to waitlistadd_account/ is quite odd to me. Could it simply be a bad cached 301? What does curl -i http://yourdomain/wailtlist/add_account/ say? Not sure about the case insensitivity. I've never tried it, but can't think of any side effects. Collin On Tu

Re: (yet another) Custom templatetag raising KeyError when DEBUG=False

2014-12-26 Thread Collin Anderson
Hi, I see what's going on. This is your 500.html server error template that's being rendered, and unfortunately, you don't get context processors in that template. Sorry. The idea is to handle cases where even one of your middleware or context processors is failing. See the line: return ht

Re: not select_relelated records

2014-12-26 Thread Collin Anderson
Hi Jose, What happens when you try son.parent? Collin On Tuesday, December 23, 2014 5:51:22 AM UTC-6, Jose Ignacio Berreteaga wrote: > > Hi > > Some records on "son" table haven´t their parent record on "parent" table. > How to know are they? > > Thanks in advace. > > Jose I. > -- You recei

Re: defer() and only() chaining bug

2014-12-26 Thread Collin Anderson
Hi Will, Yes and yes. I just confirmed it myself. Collin On Tuesday, December 23, 2014 5:45:00 AM UTC-6, William Earp wrote: > > Hi all, > > I'm currently writing unit tests for defer() and only() under issue > #18586. But there appears to a bug when it comes to chaining the two > together. >

Re: makemigrate adds multiple migrations.AddField for same model (django 1.7.1)

2014-12-26 Thread Collin Anderson
Ohh, I see. Yes, this looks like a possible spot for optimization. I wouldn't really call it a "bug", but a "cleanup/optimization". You could probably open a ticket about it. On Tuesday, December 23, 2014 5:04:55 AM UTC-6, pjotr wrote: > > Sorry, all the ALTER statements are identical except the

Re: Model form with optional fields issue

2014-12-26 Thread Collin Anderson
Hi Marcin, It's very true that Django "forms" are very HTML specific. They are built for rendering html form inputs, interpreting raw browser POST data, and displaying errors as HTML. An API isn't really "form". Validation and cleaning are already decoupled from "forms": https://docs.djangopro

Re: Thinking about EAV database model for flexibility. How (in)compatible is it with the django model?

2014-12-26 Thread Collin Anderson
Hi All, Since no one has mentioned it, I'd also like to draw attention to Django's postgres hstore support, which is a dict-like data structure coming in Django 1.8: https://docs.djangoproject.com/en/dev/ref/contrib/postgres/fields/#hstorefield Collin On Tuesday, December 23, 2014 3:19:43 AM U

Any actual open project to create a company "social" network using Django?

2014-12-26 Thread Fellipe Henrique
Hi, There's any actual open project to create a company "social" network using Django? I search on google, and I don't find any project using django (or even other python framework) only PHP or Ruby... Thanks, Cheers! -- You received this message because you are subscribed to the Google Gr

Re: initial dta for model in Django 1.7 or newer

2014-12-26 Thread Валерий Бовсуновский
Here is a good tutorial in English http://www.tangowithdjango.com/book17/ Hi, > I am very sorry, but I don't understand russian. Can you answer me in > english? And I am using Python 3.4. > Dne 26. 12. 2014 14:30 "Валерий Бовсуновский" > napsal(a): > >> >> >> четверг, 25 декабря 2014 г., 1

Re: initial dta for model in Django 1.7 or newer

2014-12-26 Thread Robert Jonathan Šimon
Hi, I am very sorry, but I don't understand russian. Can you answer me in english? And I am using Python 3.4. Dne 26. 12. 2014 14:30 "Валерий Бовсуновский" napsal(a): > > > четверг, 25 декабря 2014 г., 18:06:35 UTC+3 пользователь Robert Jonathan > Šimon написал: >> >> Hi, >> When i googled for th

Re: initial dta for model in Django 1.7 or newer

2014-12-26 Thread Валерий Бовсуновский
четверг, 25 декабря 2014 г., 18:06:35 UTC+3 пользователь Robert Jonathan Šimon написал: > > Hi, > When i googled for this problem a found out, that with migrations in > Django 1.7, there is new way how it should be done, but i didnt understand > it how. Can anyone explain me the new way how to