Re: Custom model field data type

2018-05-07 Thread JAGADESH M
if you read this page you will get an idea. get the link below

https://stackoverflow.com/questions/20754793/django-module-object-has-no-attribute-bigintegerfield

On Mon, May 7, 2018 at 3:31 PM, 'Berry' via Django users <
django-users@googlegroups.com> wrote:

> I created a custom PositiveBigIntegerField data type in models.py, which
> is a sub class of the BigIntegerField. I registered the model where the
> PositiveBigIntegerField is used in the admin site. When I try to add een
> item using the admin site, the 'add' button raises an error, telling me
> PositiveBigIntegerField is not defined.
>
> Exception Type: NameError
> Exception Value: name 'BigIntegerField' is not defined
>
> Where and how do I import the custom data type, so it is defined in de
> admin site
>
> --
> 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/6f86a82f-a2de-438c-a559-86bed3d53a14%40googlegroups.com
> 
> .
> For more options, visit https://groups.google.com/d/optout.
>

-- 
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/CAD66v%3DF2uuqwcbGA46n5Fs1gzjjBP%3D_H7rhp4A1VMx%3DYCp_hWA%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


copy schema when user register for login.

2018-11-08 Thread JAGADESH M
we are doing SAAS model product. here we need to maintain one database with 
multiple tables this will be the constant and my main database. since we 
are doing it as SAAS we need to replicate the same for n number of users. 
so when new user comes to registration, i need to make copy of main 
database which will have all the table structure. so when the user login
to his account by default it has to lookup the database which has been 
created during his/her registration time. i have no idea to go forward can 
anyone help me to fix this issue. Thank you.



regards,
Jagadesh

-- 
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/5a335a17-ab5a-4759-ad85-5e47e2e9914f%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: copy schema when user register for login.

2018-11-08 Thread JAGADESH M
the schema has to change accordingly based on the schema which has been
created during the  user registration time.

On Thu, Nov 8, 2018 at 5:56 PM Ryan Gedwill  wrote:

> This is an interesting problem.
>
> So basically you need to migrate the entire schema upon the creation of a
> new user? Can the schema change for a new user, or will it always be the
> exact same?
>
> From what I understand, you will need to ask the user for credentials for
> database connection, and then try to see if there is a way to migrate the
> models from your django code rather than the command line. I’m assuming you
> don’t want to migrate every single model for every single user, but I know
> there are ways to only migrate specific models though I forget exactly how.
>
> Sent from my iPhone
>
> On Nov 8, 2018, at 3:26 AM, JAGADESH M  wrote:
>
> we are doing SAAS model product. here we need to maintain one database
> with multiple tables this will be the constant and my main database. since
> we are doing it as SAAS we need to replicate the same for n number of
> users. so when new user comes to registration, i need to make copy of main
> database which will have all the table structure. so when the user login
> to his account by default it has to lookup the database which has been
> created during his/her registration time. i have no idea to go forward can
> anyone help me to fix this issue. Thank you.
>
>
>
> regards,
> Jagadesh
>
> --
> 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/5a335a17-ab5a-4759-ad85-5e47e2e9914f%40googlegroups.com
> <https://groups.google.com/d/msgid/django-users/5a335a17-ab5a-4759-ad85-5e47e2e9914f%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
> For more options, visit https://groups.google.com/d/optout.
>
> --
> 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/035FAF4F-3D96-48F5-8117-EFFFE6A5B909%40gmail.com
> <https://groups.google.com/d/msgid/django-users/035FAF4F-3D96-48F5-8117-EFFFE6A5B909%40gmail.com?utm_medium=email&utm_source=footer>
> .
> For more options, visit https://groups.google.com/d/optout.
>

-- 
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/CAD66v%3DH0yQER1c1V1B%2BdberuEvLbQmAewOyOu7zu1LKdzrYUjw%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


want to convert Django REST APIs from http to https in production

2018-12-15 Thread JAGADESH M
Hi,
   I am new to django when i run Django REST API by default it is 
showing *http://127.0.0.1* that's fine. But when i go deployment when i run 
APIs, even there it's running in insecure(http)
only like *http://myproductionip *. so can anyone help me to resolve this 
problem. thank you

-- 
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/1726cbee-ccad-49b1-bba6-3c5ef7e702b3%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.