Re: Multiple DB - Accessing another app's table/model?

2017-07-20 Thread miguel vfx
ery it. > > from appB.models import Table > Table.objects.all() > > > On Tue, Jul 18, 2017 at 6:01 PM, miguel vfx > wrote: > >> Hello, >> >> After following through the documentation, I was able to query data from >> another database. However, I was

Multiple DB - Accessing another app's table/model?

2017-07-18 Thread miguel vfx
Hello, After following through the documentation, I was able to query data from another database. However, I was only able to access the table of the same app name. How can I query data from a different app name? For example: appA has a model client_data. It's table name in the app_db database

Django, permission error saving on disk, why?

2017-07-04 Thread miguel vfx
Hello,I'm getting a Permissions Error [Errno 13] Permission Denied when a workbook on disk using openpyxl: wb.save(path) No file is uploaded. It's a request then the file is generated and delivered (downloaded), and that part works fine. What I'm trying to do is save a copy of that file on dis

Accessing DB on another Server/Project/App

2017-05-24 Thread miguel vfx
Hello, I would like to know what its called and if there are resources available in the web. A walkthrough tutorial would be a gem at my current skill set. I would like to access data from another server, from another project and from another app. Read access would be sufficient. Thank you for

Re: NoReverseMatch, Not working in Production Server

2017-05-08 Thread miguel vfx
> > url(r'^class_lists_summary/(?P[-\w]+)/$', > rrs_views.requires_login(rrs_views.class_lists_faculty), > name="rrs_class_lists_summary"), > Does this make any sense? I would like to use the first one since it's much cleaner. On Monday, May 8, 2017 at 5:53:54

NoReverseMatch, Not working in Production Server

2017-05-08 Thread miguel vfx
Hi, It used to work but after my recent upload, it stopped. Does anyone encountered this kind of error before? It's working fine in my local machine using runserver but not in the production server. I'm basically drag and dropping files. Then renaming the > os.environ.setdefault('DJANGO_SETTI

Can you post/submit to the same view named in urls.conf?

2017-04-11 Thread miguel vfx
> url(r'^register/(?P[-\w]+)/$', rrs_views.rrs_register_student, > name="rrs_register_student"), > def rrs_register_student(request, student_id='', section=''): Good day, I suspect that I'm doing something wrong here. What I wanted to achieve is... - When the page is loaded, it will

Login/Logout, single instance only

2017-04-03 Thread miguel vfx
Good day! I was wondering if there's a way to limit a user account to be logged-in in just 1 single device? I mean is there a way to logout a user first (In all browsers), then login? Thank you. -- You received this message because you are subscribed to the Google Groups "Django users" group.

Import Error Running script to populate database using models

2016-09-20 Thread miguel vfx
Good day, I'm getting import errors when I try to run a script to populate a database using models. I'm new to django so it means I haven't done anything special than follow djangobook and other beginner tutorials. The script I would like to run is in the same folder as the models.py. I figure