Limiting access to data through user permissions?

2020-07-10 Thread Will Meyers
Just need some help getting over a wall I've hit. I have a web application that whenever a user signs up, is assigned a License. This License has CustomPermissions attached to it telling what values of a field within a materialized view they have access to. I have an API that needs to filter

Custom Permissions of Django Materialized View

2020-06-10 Thread Will Meyers
Hi all, I'm building an application that uses Django Rest Framework and Django Guardian. I have to implement a permissions system such that when a user requests data from a materialized view, I need to omit certain rows from the returned queryset based on the user's group. For example, if my

Re: Custom login in django

2020-03-30 Thread Will Meyers
We'd need more info, but most likely the actual token is not being sent to the template properly. See this thread for suggestions. On Mon, Mar 30, 2020 at 11:18 AM Kushal Neupane wrote: > Forbidden

Re: how to calculate appreciation and depreciation with the use of forms

2020-03-21 Thread Will Meyers
We would need more information if you're having a specific issue, but general if I were building something of that sort I would be using celery to perform all the calculations. Form data can be easily serialized and passed to the task queue and the results can

Effecient Text Search

2020-03-14 Thread Will Meyers
Hi all, Just a quick question. I'm working on a general search function for my application and just wanted your opinions before I do any sort of benchmarking. Right now I have a PostgreSQL database with a table (model) which includes a title column and summary column (both charfields). Would

Having problems installing Heroku database

2014-01-12 Thread Scott Meyers
Trying to get started with Django. My tutorial tells me to run pip install dj-database-url. When I do that, I get: postgres@precise64:/vagrant/projects2/microblog$ pip install dj-database-url Downloading/unpacking dj-database-url Cannot fetch index base URL http://pypi.python.org/simple/ Could

How to re-sync with Heroku?

2014-01-09 Thread Scott Meyers
Newbie here (obviously!). I'm starting a Django project in Cygwin. I push to Heroku. I'm playing around, checking heroku logs, and my power goes out. So I boot my computer, get back into Cygwin, go back into my project's root. How do I sync it with Heroku again? If I type heroku ps or

Re: Deploying to Heroku for first time, Dynos is blank, not recognizing Procfile

2014-01-08 Thread Scott Meyers
i <vibhu...@gmail.com > > wrote: > >> yes. just create a text file with no extension. Here's mine for reference >> : >> >> $ cat Procfile >> web: gunicorn qj.wsgi >> >> >> V. >> >> >> On Tue, Jan 7, 2014 at 9:31

Deploying to Heroku for first time, Dynos is blank, not recognizing Procfile

2014-01-06 Thread Scott Meyers
Programming newb, Trying to use Heroku for the first time for a Django app. After I push it to Heroku, the Dynos field is blank. I expected to see my procfile: web: python manage.py runserver 0.0.0.0:$PORT --noreload Of course, when I try to open the application on Heroku, I get: An error