Django and MS SQL

2012-03-14 Thread Adolphe Cher-Aime
Good morning all,
Can someone share with me its experience with Django application running on
MS SQL DB? I have a heavy application that i want to migrate to django.
Please can you  share your experience with me in term of  stability and
feasibility? How does  django  teamup with  MS SQL.

Regards.

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-users@googlegroups.com.
To unsubscribe from this group, send email to 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.



Django and MS-SQL

2012-04-05 Thread Adolphe Cher-Aime
Hi all,
Can anyone share his experience about  developing application with django
that uses  Microsoft SQL server 2005 or later ?
And how is it in production environment.


Thanks

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-users@googlegroups.com.
To unsubscribe from this group, send email to 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.



Re: How to get selects option value !!

2015-05-19 Thread Adolphe Cher-Aime
In your view try   request.POST.getlist('oblast_select'). It will return
the selected values in a list.



On Tue, May 19, 2015 at 12:01 PM, Reznov Ammar  wrote:

> Hey guys,
>
> I've had created a search form, and i need to send a post request to my
> python file to get information .
>
> Here is my html code :
>
>   
> 
>   
> 
>   Область/Город республиканского значения
>   
> нет
> value1
> value2
> value3
> value4
> value5
> value6
> 7
> 8
> value9
>   
> 
> 
>
> and here is my python file :
>
> @app.route('/serviceidlookup', methods=["GET", "POST"])
> def serviceidlookup():
>
> reload(sys)
> sys.setdefaultencoding("utf-8")
> sys.stdout.encoding
>
> serviceid = request.form.get('serviceid')
> areaid = request.form.get('areaid')
> con = psycopg2.connect(**config)
> cur = con.cursor()
>
> cur.execute("select ate,ate_type,name_kg,name_ru,name_en,parent from
> ate_history where ate in (select ate from street_ate where street in
> (select street from street_history where name_ru = '(*value of serviceid*)')
> and ate = '(*value of areaid*)')" %(serviceid,areaid))
> entries = [dict(ate=row[0], ate_type=row[1], name_kg=row[2],
> name_ru=row[3], name_en=row[4], parent=row[5]) for row in cur.fetchall()]
>
>
> return render_template('lookup.html', serviceid=serviceid,
> entries=entries)
>
> What i need is the options texts to get inside serviceid and the values to
> get inside areaid !!
>
> please any help, because here i got confused really !!!
>
> --
> 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 this group, send email to django-users@googlegroups.com.
> Visit this group at http://groups.google.com/group/django-users.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/django-users/c341c1e2-6aab-4479-8f51-8f021775133b%40googlegroups.com
> <https://groups.google.com/d/msgid/django-users/c341c1e2-6aab-4479-8f51-8f021775133b%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
> For more options, visit https://groups.google.com/d/optout.
>



-- 


*Adolphe CHER-AIME*

-- 
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 this group, send email to django-users@googlegroups.com.
Visit this group at http://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CA%2BfkitKe9H8VdUVaTRzL%2BxxnnJ4xvBsRBYUPTX5OGRJ_9aD8Ew%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: How to get selects option value !!

2015-05-19 Thread Adolphe Cher-Aime
My previous answer is related to django. For flask I think you need to ask
in a flask mailling list.

On Tue, May 19, 2015 at 12:18 PM, Adolphe Cher-Aime 
wrote:

> In your view try   request.POST.getlist('oblast_select'). It will return
> the selected values in a list.
>
>
>
> On Tue, May 19, 2015 at 12:01 PM, Reznov Ammar 
> wrote:
>
>> Hey guys,
>>
>> I've had created a search form, and i need to send a post request to my
>> python file to get information .
>>
>> Here is my html code :
>>
>>   
>> 
>>   
>> 
>>   Область/Город республиканского значения
>>   
>> нет
>> value1
>> value2
>> value3
>> value4
>> value5
>> value6
>> 7
>> 8
>> value9
>>   
>> 
>> 
>>
>> and here is my python file :
>>
>> @app.route('/serviceidlookup', methods=["GET", "POST"])
>> def serviceidlookup():
>>
>> reload(sys)
>> sys.setdefaultencoding("utf-8")
>> sys.stdout.encoding
>>
>> serviceid = request.form.get('serviceid')
>> areaid = request.form.get('areaid')
>> con = psycopg2.connect(**config)
>> cur = con.cursor()
>>
>> cur.execute("select ate,ate_type,name_kg,name_ru,name_en,parent from
>> ate_history where ate in (select ate from street_ate where street in
>> (select street from street_history where name_ru = '(*value of serviceid*)')
>> and ate = '(*value of areaid*)')" %(serviceid,areaid))
>> entries = [dict(ate=row[0], ate_type=row[1], name_kg=row[2],
>> name_ru=row[3], name_en=row[4], parent=row[5]) for row in cur.fetchall()]
>>
>>
>> return render_template('lookup.html', serviceid=serviceid,
>> entries=entries)
>>
>> What i need is the options texts to get inside serviceid and the values
>> to get inside areaid !!
>>
>> please any help, because here i got confused really !!!
>>
>> --
>> 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 this group, send email to django-users@googlegroups.com.
>> Visit this group at http://groups.google.com/group/django-users.
>> To view this discussion on the web visit
>> https://groups.google.com/d/msgid/django-users/c341c1e2-6aab-4479-8f51-8f021775133b%40googlegroups.com
>> <https://groups.google.com/d/msgid/django-users/c341c1e2-6aab-4479-8f51-8f021775133b%40googlegroups.com?utm_medium=email&utm_source=footer>
>> .
>> For more options, visit https://groups.google.com/d/optout.
>>
>
>
>
> --
>
>
> *Adolphe CHER-AIME*
>

-- 
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 this group, send email to django-users@googlegroups.com.
Visit this group at http://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CA%2BfkitK35Sx-sjf8acCMAMNCas8Gk1JGOR%3DD8S7XywKZFMKipA%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: open data protocol and django

2014-01-16 Thread Adolphe Cher-Aime
Have you tested  tastypie?

http://tastypieapi.org/


Regards,




On Thu, Jan 16, 2014 at 3:04 PM, Sven Aßmann  wrote:

> Hi Folks,
>
> again i wanna ask you if someone of you already had the chance to play
> around
> with the open data protocol and a django integration?
>
> Currently it looks like that there is no real stable client implementation
> for
> python. Only found that https://code.google.com/p/odata-py/ and it is
> still
> not production ready.
>
> After thinking about it i came to the idea that the djnago-rest-framework
> would be maybe the best starting point. The protocol is a REST based one
> and
> therefore only some serializers and glue code for data types and REST
> methods
> would be needed. An extension to rest-framework would be an possible
> option,
> maybe.
>
> Therefore the question if someone maybe did already a small playaround
> basing
> on django-rest-framework or a small selfmade implementation?
>
> Thanks for your feedback.
>
>
> --
>
>
> Best Regards,
> Sven
>
> --
> 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 this group, send email to django-users@googlegroups.com.
> Visit this group at http://groups.google.com/group/django-users.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/django-users/1553947.x5EqRhUUPE%40gilgamesch
> .
> For more options, visit https://groups.google.com/groups/opt_out.
>

-- 
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 this group, send email to django-users@googlegroups.com.
Visit this group at http://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CA%2BfkitJ_UVLu0Ev5NJPWAaSRt%3DsODxRgiYfSzw32NEm5DWXT8A%40mail.gmail.com.
For more options, visit https://groups.google.com/groups/opt_out.


Re: import

2014-02-11 Thread Adolphe Cher-Aime
Hi Hendriks,

My suggestion to you is to first take a look at the python language it self
as  Django is as python framework. There's a lot of tutorials out there to
help you. When you feel that you understand python, you can come back to
django.
The good news is you don't have to be a Python expert to build good web
apps in Django.


Good luck.

Adolphe Cher-Aime



On Tue, Feb 11, 2014 at 5:26 AM, Johan Hendriks wrote:

> Hello all.
>
> I have a little question, maybe a little stupid but non the less it keeps
> me busy. :-)
>
> I want to start making some web based apps as a hobby project.
> I have no coding experience other then some basic shell scripting to get
> some daily routine jobs done on my FreeBSD servers.
> The first struggle I had to take is the programming language, I looked at
> PHP and python, and I think my best option is Python, and with python comes
> Django.
> So the last weeks i have been doing some searches on google and view a lot
> of tutorial video's how to start with django.
>
> One thing that always comes back is the import part like below
>
> from  django.http  import  HttpResponse
>
> And here comes my question, where and how do you know what you need to
> import.
> What is the best way to learn al these imports? , and is there a quick way
> to find the imports you need?
>
> Thank you for your time.
>
> regards
> Johan
>
>
>
> --
> 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 this group, send email to django-users@googlegroups.com.
> Visit this group at http://groups.google.com/group/django-users.
> To view this discussion on the web visit https://groups.google.com/d/
> msgid/django-users/52F9FACB.5010108%40gmail.com.
> For more options, visit https://groups.google.com/groups/opt_out.
>

-- 
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 this group, send email to django-users@googlegroups.com.
Visit this group at http://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CA%2BfkitJMHwZ5WnAPE0Tip7fpP%3DNbwDVNxYuFTx%3DX3st4BVGd%2BQ%40mail.gmail.com.
For more options, visit https://groups.google.com/groups/opt_out.