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 users/authors etc from DB to django 
User management system?

Any suggestion would be appreciated.

Regards,

Asif


-- 
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 https://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/2b085937-4b66-480d-86e0-01cd018d1f8b%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


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/architecture?

Thanks,

Asif

-- 
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 https://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/3d1a910a-882f-4c19-8067-3685dbf835c9%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


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 
> 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/architecture?
>
> Thanks,
>
> Asif
>

-- 
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 https://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/5178dd3a-ede8-4a67-ad03-17683f45f514%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


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"
>id = db.Column(db.Integer, primary_key=True)
>user_id = db.Column(db.String(255), unique=True)
>name = db.Column(db.String(255))
>
>
>
>- This is a Json example which I want get.
>- {
>  "user":
>  {
>"id":{
>"type": "Integer",
>"primary_key": True,
>"null": True,
>"default value": "",
>"foreign key": ""},
>"user_id":{
>"type": "Integer",
>"primary_key": True,
>"null": True,
>"default value": "",
>"foreign key": ""},
>"name":{
>"type": "Integer",
>"primary_key": True,
>"null": True,
>"default value": "",
>"foreign key": ""},
>  }
>}
>- 
>Wait your response online
>
>
>
>

-- 
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 https://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/00fc2393-20a7-4196-a8b5-a2c368913f59%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


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(db.Integer, primary_key=True)
>user_id = db.Column(db.String(255), unique=True)
>name = db.Column(db.String(255))
>
>
>
>- This is a Json example which I want get.
>- {
>  "user":
>  {
>"id":{
>"type": "Integer",
>"primary_key": True,
>"null": True,
>"default value": "",
>"foreign key": ""},
>"user_id":{
>"type": "Integer",
>"primary_key": True,
>"null": True,
>"default value": "",
>"foreign key": ""},
>"name":{
>"type": "Integer",
>"primary_key": True,
>"null": True,
>"default value": "",
>"foreign key": ""},
>  }
>}
>- 
>Wait your response online
>
>
>
>

-- 
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 https://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/bd6f5f3b-2e8c-4eac-80f3-1f787ab969ef%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


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 
> beyond 100%) for some scenarios. I would like to debug the platform on 
> Production to see where the CPU consumption is happening. We have used 
> Cache all over the place (including templates) as well - hence, the DB 
> queries would be quite limited. 
>
> I would refrain from using Django-debug toolbar as it slows down the 
> platform further, increases the CPU usage and also need to turn the DEBUG 
> on. Is there any other tool or way to debug the platform? Would appreciate 
> any recommendations/suggestions. 
>
> Also, does the Django ORM increase the CPU usage? Does it block the CPU? 
> Would appreciate if anyone could throw some light on this.
>
> Thanks.
>

-- 
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 https://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/69176a56-5604-4b3e-9887-9ebedf55dbb4%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


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. 
>
>  
>
> Daniele 
>
>

-- 
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 https://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/ec9bdf3c-661b-4fe3-838f-377c68a6204e%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


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 
cases.

Regards

auvipy 

On Sunday, April 3, 2016 at 4:37:22 AM UTC+6, Devrhoid Davis wrote:
>
> Hi All, 
>
> I have been working with Python for just over 3 years now and have 
> recently taken up django. I have completed both the polls app and have 
> created an address book app by following a tutorial on youtube. I am 
> looking fro ways to improve my competence with django and possibly some end 
> to end website projects. Can anyone provide me with some links as to where 
> I could find resources for improving my skills and then avenues for using 
> these skills to generate income?
>
> Thanks in advance. 
>
> Regards,
> Devrhoid
>
>

-- 
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 https://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/e8dd6d1c-7120-4578-9eaa-633e65fdae7e%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.