Re: Running django admin separately

2020-02-29 Thread Agumba .
My main aim is to run separate instances of the django.admin and drf API On Sun, Mar 1, 2020, 04:23 Stephen J. Butler wrote: > I think so. Haven't tested, one way should be be to have have two > url.py's, one that includes only the admin URLs and one that includes only > your project URLs. Then

Re: Database connection not pointing to the correct database backend

2020-02-29 Thread Agumba .
Try using pymysql... Add the following in your project root __init__.py ie. `import pymysql pymysql.version_info = (1, 3, 13, "final", 0) pymysql. install_as_MySQLdb() ` On Sun, Mar 1, 2020, 07:34 karthik s wrote: > Hi cam, > well I solved same problem by removing virtual environment and > rein

Re: Database connection not pointing to the correct database backend

2020-02-29 Thread karthik s
Hi cam, well I solved same problem by removing virtual environment and reinstalling all the packages again. it worked for me then, I have now access to mysql database .. afterthat you have python 2.xx version pip install otherwise python3.xx version pip3 install On Sun, Mar 1, 2020 at 1:51 AM C

Re: Running django admin separately

2020-02-29 Thread Stephen J. Butler
I think so. Haven't tested, one way should be be to have have two url.py's, one that includes only the admin URLs and one that includes only your project URLs. Then have two settings modules that look like this: # main site settings from .settings import * ROOT_URLCONF = 'myproject.urls_main' #

Running django admin separately

2020-02-29 Thread Agumba
Hello django users is there a way i can run django-admin separately from the main site like separate instances..any help will be appreciated -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and stop receiving

Database connection not pointing to the correct database backend

2020-02-29 Thread Cam
I'm running Ubuntu and I'm trying to create a small web-app connecting to a mysql database. (I've also tried sql-server database and had the same issue) It took me awhile the first time I did this but I was able to get it to work using 'ENGINE': 'mysql.connector.django', This time around I'm

Validating OneToOne related forms in single Django View

2020-02-29 Thread Zameer Ahmed
Hi All, Can someone kindly guide me to right direction I am new to Django and I've been trying whole day for this now. Question is posted on Stackoverflow with link below. https://stackoverflow.com/questions/60468474/multiple-django-onetoone-modelform-validation-in-single-create-view Regards,

Re: Serializing forms and formsets to pass to Celery task

2020-02-29 Thread Integr@te System
Hi Bernd, You could take a look at serializers section on Note part, for more information, and may be your own answer. http://docs.celeryproject.org/en/master/userguide/calling.html#calling-serializers On Sat, Feb 29, 2020, 23:56 Naveen Arora wrote: > Yes that would work well. You can alwa

Re: Is it possible to extend the model in another application without explicitly changing firs-one?

2020-02-29 Thread Ol P
> > Why are you trying to create the same table again and again with more or > less attributes ? I do not try to RE-create the table but to alter the existing one. Sometimes following the pure pythonic way may limits what framework can do. But it does not mean that somewhere in the universe of

Re: Is it possible to extend the model in another application without explicitly changing firs-one?

2020-02-29 Thread Ol P
This is not extending but inheritance. It will create a new table. I need to alter the existing table. On Friday, February 28, 2020 at 8:27:26 PM UTC+2, Motaz Hejaze wrote: > > You should understand that extending a model will create a new table with > columns existed in parent in addition to ne

Re: Serializing forms and formsets to pass to Celery task

2020-02-29 Thread Naveen Arora
Yes that would work well. You can always find a completely different way of achieving what you are trying to achieve. On Saturday, 29 February 2020 18:52:24 UTC+5:30, Jason wrote: > > As said before, you really can't do that too well with celery. Its a good > practice to keep the message body b

Re: Is it possible to extend the model in another application without explicitly changing firs-one?

2020-02-29 Thread Naveen Arora
Hi again, According to what i have understood the problem till now. You are trying to implement it the wrong way. This is not python, Everything is already built using classes, you are already overriding a class, then extending an overriden class seems complicated. Modularity and loose coupling

Re: Api

2020-02-29 Thread Naveen Arora
Can you share the traceback of error you are facing ? Cheers, On Saturday, 29 February 2020 11:17:59 UTC+5:30, Tosin Ayoola wrote: > > halo having 2 issues now > (1st) getting an integrity err > (2nd) i have a api code that return's count but still i'm not getting wat > i expected > below is

Re: Issue in the API while merging the two data frames

2020-02-29 Thread Naveen Arora
Hi Devendra , Can you share the code with the exact error you are facing.? Cheers, Naveen Arora On Saturday, 29 February 2020 04:35:02 UTC+5:30, Devendra reddy wrote: > > Hi to all, > > I have two data frames in the python django API.one dataframe we are > getting from the query and one data f

WYSIWYG Editor with editable queryset (like Confluence)

2020-02-29 Thread guettli
Some days ago I worked with Confluence. This tool has a great feature: You can insert a paginated queryset in a page. Without coding, all WYSIWYG: Docs: https://confluence.atlassian.com/doc/page-properties-report-macro-186089616.html Is there a way to get this cool feature into django? Regard

Re: Serializing forms and formsets to pass to Celery task

2020-02-29 Thread Jason
As said before, you really can't do that too well with celery. Its a good practice to keep the message body between django -> broker -> worker to be as small as possible because we don't know what your configuration for the broker is. In addition, you should never, ever, put sensitive informat

Re: Is it possible to extend the model in another application without explicitly changing firs-one?

2020-02-29 Thread osasere igbinoba
good morning am also interested in joining the class On Thursday, February 27, 2020 at 8:34:12 AM UTC-8, Ol P wrote: > > Imagen we have *app-A* and *app-B* with *model-A* and *model-B* > accordingly. > And we want to extend *model-A* in *app-B*. > What should be written in *model-B* to implement

Re: production setup

2020-02-29 Thread Appu Yadav
store image and documents in aws bucket or Google stroage On Sat, 29 Feb 2020, 10:25 Naveen Arora, wrote: > Try implementing it for once. If you face any problem, you can post in > this community > > Regards > > -- > You received this message because you are subscribed to the Google Groups > "Dj

Re: production setup

2020-02-29 Thread Soumen Khatua
Okay, sure. Thank you for your response. On Sat 29 Feb, 2020, 11:33 AM Naveen Arora, wrote: > Hi > > have a look at this - > https://github.com/codingforentrepreneurs/Guides/blob/master/all/Heroku_Django_Deployment_Guide.md > > Cheers > > -- > You received this message because you are subscribe