Re: Address book using django

2015-05-22 Thread Gergely Polonkai
You say that your backend is ready. Does this mean you have created your models and can access them from the shell (pythen manage.py shell, see the first chapter of the tutorial, section Playing with the API)? If so, what parts of the frontend creation you don't understand? Is it view creation or

Re: Address book using django

2015-05-22 Thread Preeti
Hi James, I started learning Django this week. My code isn't on Github. I learnt building the app, and the backend work but I'm not able to understand how to connect front-end with the framework. I have enclosed a copy of what I want in my app. Please go through it, and guide. Thanks On

Re: how to do a django data migration on a massive Postgres data table (solved)

2015-05-22 Thread Larry Martell
On Fri, May 22, 2015 at 3:09 PM, Vernon D. Cole wrote: > Django migrations are run in a single transaction (if your database is > capable of doing a rollback of DDL, as PostgreSQL is) so data migrations of > large tables become impossible. > > I was able to solve this

Re: Non-profit membership management suggestions

2015-05-22 Thread Teruo Utsumi
Thanks for the advice. I'm so new and there's SOOO much out there. I'm thinking your buffet-style approach of picking and choosing different Django apps is probably the best way to go. Think what I'll do is do a bit more research, come up w/ a set of apps and ask the group for comments. On

Re: "&" string to template adds "" in the html

2015-05-22 Thread Javier Guerra Giraldez
On Fri, May 22, 2015 at 1:11 PM, dk wrote: > I fixed doing this > > {% autoescape off %} > {{ my_var_with_& }} > {% endautoescape%} the "right" way is: {{ my_var_with_anything|safe }} -- Javier -- You received this message because you are subscribed to the Google

how to do a django data migration on a massive Postgres data table (solved)

2015-05-22 Thread Vernon D. Cole
Django migrations are run in a single transaction (if your database is capable of doing a rollback of DDL, as PostgreSQL is) so data migrations of large tables become impossible. I was able to solve this problem by having the migration run a no-wait subprocess which performs the data migration

Re: Non-profit membership management suggestions

2015-05-22 Thread James Brewer
Perhaps the problem is that you are looking for a single solution that meets all of your needs. This is not a very useful approach. It's called custom software and it's very expensive. :) Have you thought of finding different packages that each meet an individual need? For example, the

Re: httml form to django

2015-05-22 Thread dk
thanks for the help, at the end I did it with putting it on the url as a url variable ?var=my_var and in the view request.POST.get("username"). thanks for the tips, super helpful. On Thursday, May 21, 2015 at 10:29:24 PM UTC-5, luisza14 wrote: > You don't need to alter any model, only need

Re: change the style of the forms been render in the httml?

2015-05-22 Thread dk
yea doing it like its easier =) mucho mas facil. On Thursday, May 21, 2015 at 10:15:48 PM UTC-5, luisza14 wrote: > It is easy, you only need to put id attribute to form statement like this > > {{form.as_p}} > > In CSS use cascade starting by #myform. > > Other thing I was used form.as_p for

Re: "&" string to template adds "" in the html

2015-05-22 Thread dk
I fixed doing this {% autoescape off %} {{ my_var_with_& }} {% endautoescape%} now works fine. On Thursday, May 21, 2015 at 11:53:07 AM UTC-5, Andréas Kühne wrote: > > 2015-05-21 18:35 GMT+02:00 dk : > >> I am creating a string inside the view that will be use in the

Re: utf-16le encode generic view object_list

2015-05-22 Thread JHeasly
@Tim: render_to_string! Forgot about that, somehow. That could clean it up a bit. Thanks! @Stephen: Thanks for the feedback. This app's running internally and is on insecure and ancient 1.4, but the mimetype parameter reminder is a good one! Thank you. -- You received this message because

Re: How to get a application-formpost in django view? Get QueryDict variables.

2015-05-22 Thread Gergely Polonkai
Actually, it is Django that handles it right. Where there are colons (,), there should be equation signs. This is not really HTTP compliant, so I'm afraid you must process the incoming data (i.e. request.body) yourself. On 22 May 2015 15:46, "Fellipe Henrique" wrote: > Here

Re: Non-profit membership management suggestions

2015-05-22 Thread Teruo Utsumi
Hi James, I previously did come across that website. But I've tried searches for "membership", "association", "club", and a few others, all to no avail. Similar searches on GitHub result in hits, but for packages unrelated to what I'm looking for. Or maybe I'm not digging deep enough.

Re: Non-profit membership management suggestions

2015-05-22 Thread James Brewer
Hey Teruo, I <3 astronomy :) Check out this nifty tool I found the other day: https://www.djangopackages.com/ That site lists a bunch (all?) of Django packages with descriptions on what each one does. You should at least be able to stitch together what you need. Happy Friday! James On Fri,

Re: Address book using django

2015-05-22 Thread James Brewer
Hey Preeti, Glad you're getting into Django! It's a fantastic framework. (I'm kind of biased.) With that said, we need more information to know how to help you. What have you tried? Is your code available on Github? The "Where do I start?" question is too broad for anyone to give an answer more

Re: Address book using django

2015-05-22 Thread Preeti
Hi Gergely, thanks for replying back! I followed tutorials on djangoprojects.com but I haven't found it much resourceful for creating my app. Therefore, I seek to get help for some newer links to understand Django a better way. On Friday, May 22, 2015 at 11:50:00 AM UTC+5:30, Preeti wrote:

Re: how shall I built online address book using Django

2015-05-22 Thread Preeti
I donot want that people do homework for me or create the app for me. I referred to that djangoproject.com tutorials for two days, but for creating the app I didnt find it much resourceful. I wanted few more good links from where I can understand django a better way to built my app. thanks

Re: Django real world website samples (with django source codes)

2015-05-22 Thread Наталья Стасюк
Our japan restaurant site is based on django-oscar and django-cms: kenzo-resto.ru Hope it help. Regards. четверг, 7 апреля 2011 г., 8:48:31 UTC+3 пользователь django beginner написал: > > Hi all, > > Could someone please give a link on some of the samples for real world > Django websites? >

Re: Django real world website samples (with django source codes)

2015-05-22 Thread Наталья Стасюк
Hi, Django Beginner! You may look at our restaurant site http://kenzo-resto.ru/ It based on django-oscar and django-cms with some other usefull django apps. Django-cms with django-cms-cascade plugin works great and allow us to create new pages very quickly in visual way. Hope, its helpfull.

Non-profit membership management suggestions

2015-05-22 Thread Teruo Utsumi
I'm part of a non-profit (an astronomy club that does public outreach). To date all our operations are done manually, e.g., our membership database is a spreadsheet via cut-and-paste. We're looking to automate our processes, particularly those that are repetitive. I'm looking for open-source

Re: how shall I built online address book using Django

2015-05-22 Thread C. Kirby
I think people here will be happy to help if you have specific questions, but don't really want to do your homework for you. If you need to learn about how django works, and how you can start to think about building this application, I recommend doing the tutorial at:

Re: How to get a application-formpost in django view? Get QueryDict variables.

2015-05-22 Thread Fellipe Henrique
Here is the request.body: b"'data[id]', ['83A0C50B5A0A43AD8F60C1066B16A163']&'data[status]', ['paid']&'event',['invoice.status_changed']" I think, maybe, something is wrong in Django, because these same POST is easy to get using PHP or Rails.. in PHP I get with these: $_POST['data']['id']

Re: Address book using django

2015-05-22 Thread Gergely Polonkai
Hello, besides that it sounds like a homework to me, I don't see why you need an admin module, as Django already has one. For everything else, if you walk through the tutorial app, you should get most of the ideas from there. Best, Gergely On 22 May 2015 09:19, "Preeti"

Re: Migrating from sqllite3 to postgres

2015-05-22 Thread Gergely Polonkai
I will also have to do this in the near future (same reason), and already have some untested ideas. My guess is to add a second database in settings.DATABASES, fetch all the model instances from my original db and save them in the other. But if anyone has a better solution, let us know! On 22 May

Custom RelatedManager?

2015-05-22 Thread Erik Cederstrand
Hi folks, I have some models with a custom Manager that prefetches certain fields: class PrefetchManager(models.Manager): def get_queryset(self): return super().get_queryset()\ .select_related(*self.model.select_fields)\

how shall I built online address book using Django

2015-05-22 Thread Preeti
I have to create an address book using django it should contain two modules-user and admin the user is allowed to write his/her first name/last name, add the picture, lists the social media links, should add a 4-digit PIN . the other user can use that 4-digit PIN to add a particular contact in

Address book using django

2015-05-22 Thread Preeti
I have to create an address book using django it should contain two modules-user and admin the user is allowed to write his/her first name/last name, add the picture, lists the social media links, should add a 4-digit PIN . the other user can use that 4-digit PIN to add a particular contact in

Combining Social auth and normal auth in Django

2015-05-22 Thread akshat
I am developing a full-fledged user management in django. I want to combine normal django authentication and social authentications. Django normal authentication contains one User table which stores all the fields of user such as (username,email,password etc). I want to know the sequential

Migrating from sqllite3 to postgres

2015-05-22 Thread jaspinder singh
I have developed an app using sqllite. But my Heroku doesn't support sqllite and the data keeps leaking every 24 hours. Can someone list the steps how to change from sqllite3 to postgres -- You received this message because you are subscribed to the Google Groups "Django users" group. To

Re: utf-16le encode generic view object_list

2015-05-22 Thread Stephen J. Butler
I think that looks fine. I would change the mimetype to "text/plain; charset=UTF-16LE" just to play nice, but it probably will never matter with your Content-Disposition. Also, HttpResponse's mimetype parameter has been deprecated since 1.5; use content_type instead. On Thu, May 21, 2015 at 3:04