Rails User management system to django user management system for REST API

2017-11-11 Thread Asif Saifuddin
Hi, I have and existing live project running on rails. I have to expose the API's using django for now. I have generated models and edited them to create django model and mapping and exposed some API locally. I have one issue which is confusing my mind. That is how would I use the existing use

Re: [Ask for help]How to convert django models schema to json?

2016-11-01 Thread Asif Saifuddin
But seems like you are using sqlalchemy models. for sqlalchemy models you could try sqlalchemy-marshmellow On Wednesday, November 2, 2016 at 2:27:47 AM UTC+6, 周华 wrote: > > >- This is an example models >- class UserModel(db.Model): >__tablename__ = "user" >id = db.Column(d

Re: [Ask for help]How to convert django models schema to json?

2016-11-01 Thread Asif Saifuddin
Hi, you can try django-rest-frameworks model serializer, modelviewsets and django-json-api package for this job. thanks On Wednesday, November 2, 2016 at 2:27:47 AM UTC+6, 周华 wrote: > > >- This is an example models >- class UserModel(db.Model): >__tablename__ = "user" >i

Re: Implementing user alias in django.

2016-06-28 Thread Asif Saifuddin
Thanks I will try your suggested way. On Tuesday, June 28, 2016 at 6:36:02 PM UTC+6, Asif Saifuddin wrote: > > Hi, > > I'm planning to implement user alias in django. A user can create many > alias and each alias will work like and full user. each alias will have >

Implementing user alias in django.

2016-06-28 Thread Asif Saifuddin
Hi, I'm planning to implement user alias in django. A user can create many alias and each alias will work like and full user. each alias will have different newsfeed/user follow other user/alias and each alias can do every action a real user can do. How should I implement this user model/archi

Re: Looking for ways to improve my skills

2016-04-06 Thread Asif Saifuddin
Hi, I have been working with django for 3years. 1 thing I wanna add with others, that is I tried django based popular cms project like mezzanine, django-cms, wagtail etc. and other popular django packages docs and source code. This helped me a lot to understand different parts of django's use c

Re: PGConf US 2016 - free tickets for Django community members

2016-03-19 Thread Asif Saifuddin
The member should be a US citizen? On Thursday, March 17, 2016 at 5:45:27 AM UTC+6, Daniele Procida wrote: > > The organisers of PGConf US 2016, the biggest Postgres conference in the > world, have offered five full conference tickets worth US$439.00 each to > the Django community. > >

Re: Debugging DJango app on production for High CPU Usage

2016-02-24 Thread Asif Saifuddin
What is your server configuration and system usage statistics? On Wednesday, February 24, 2016 at 10:59:28 AM UTC+6, Web Architect wrote: > > Hi, > > We have an ecommerce platform based on Django. We are using uwsgi to run > the app. The issue the CPU usage is hitting the roof (sometimes going >