Horizontal Partition. How affect other indexes?

2019-07-17 Thread Yoo
Err so no one responded to my post, so I suppose here's a more general Database question: Let's say there is a table with two indexes. I horizontally partition by one of the indexes. How does this affect the other one? I need to utilize BOTH indexes and there is no way I'm able to vertically

Re: Issues while creating virtual environment before installing Django

2019-07-17 Thread John P
Give pipenv a try. Simply create the folder your going to use and navigate into that folder. Then use pipenv install django, pipenv shell will load the virtual environment for you. Not sure what's causing the problem but this may make your life simpler. On Wed, Jul 17, 2019, 11:25 AM Mahesh

Re: Make an Heroku connect model my app's custom user model

2019-07-17 Thread Yoo
Hi! I'm not fully acquainted with Heroku connect, but here's the pdf docs: https://buildmedia.readthedocs.org/media/pdf/django-heroku-connect/stable/django-heroku-connect.pdf on page 9 you can find: heroku_connect.E006 The Salesforce object name must be unique since an object can only mapped

Re: Can Django fill in a template based on a custom URL, if the contents of the URL match an item in the database?

2019-07-17 Thread Yoo
Hmm. So is diamondscompany.com/ going to be static? As in that is permanent? If so, then your custom button can simply be a custom URL. I'm not sure if a listing on eBay can automatically be done (not acquainted with it, sorry), but I imagine editing the admin.py with some custom stuff. Maybe

Re: Query questions. Please help me.

2019-07-17 Thread 나르엔
I've solved it like this. Thank you for your help. def get_queryset(self): context = super(SearchListView, self).get_queryset() query = self.request.GET.get('q') selectOptions = self.request.GET.getlist('selectoptions') argument_list = [] for field in selectOptions: argument_list.append(

Re: Running Django 2.2.3 in Apache2

2019-07-17 Thread Yoo
https://www.sysadmin.md/deploy-django-in-production-using-apache-nginx-and-mod-wsgi.html https://stackoverflow.com/questions/18048318/apache-mod-wsgi-vs-nginx-gunicorn There are several fantastic tutorials online regarding apache2 and mod_wsgi. A simple google search with the keywords apache2 and

Re: Issue i18n django_language in session

2019-07-17 Thread Yoo
I'm not sure, either. Usually, whenever I'm testing, I open a private/incognito browser in case there is caching or cookies are being saved (cookies could be related to session authentication and other stuff). What I would try first is clearing your cookies if you've been using a regular

Re: sqlite update on CentOS 7 for latest django version

2019-07-17 Thread Yoo
Hm did you first do ./manage.py migrate? Maybe your db.sqlite file doesn't exist... Check! Additionally, if there IS a file that is similar to a db name, like blah.db, make sure in your "database" settings in settings.py points to that file. Sqlite3 isn't old; it's not going away, either. With

Re: Query questions. Please help me.

2019-07-17 Thread Yoo
Take a look at Q objects: https://docs.djangoproject.com/en/2.2/topics/db/queries/#complex-lookups-with-q-objects On Wednesday, July 17, 2019 at 4:04:16 PM UTC-4, 나르엔 wrote: > > Hello, I am studying django. > > When I use objects.filter, I want to search various columns. > > Columns to search

Re: Issues while creating virtual environment before installing Django

2019-07-17 Thread Yoo
Isn't Python 3.x automatically installed with virtualenv and pip? Try this: virtualenv venv Then, do: cd venv\scripts && activate Then you can start installing packages like this: pip install django On Wednesday, July 17, 2019 at 11:26:04 AM UTC-4, Mahesh Kumar wrote: > > Hi all, > I tried to

Re: Query questions. Please help me.

2019-07-17 Thread 나르엔
Thank you! That's working! But I think it's just a AND condition. It's embarrassing, but what should I do with the OR conditions? def get_queryset(self): context = super(SearchListView, self).get_queryset() query = self.request.GET.get('q') selectOptions =

Re: Issues while creating virtual environment before installing Django

2019-07-17 Thread Mike Dewhirst
You can make it easy for yourself by doing a batch file to automate creation of the virtualenv. If you want I can post the one I use. Connected by Motorola Mahesh Kumar wrote: >Hi all, > >I tried to install the Django software in my Laptop command prompt, I have to >create(mkvirtualenv

Re: Query questions. Please help me.

2019-07-17 Thread Jani Tiainen
Hi. You can use dictionary unpacking to kwargs. .filter(**{"name__contains": "foo", "somefield__gt": 123}) ke 17. heinäk. 2019 klo 23.04 나르엔 kirjoitti: > Hello, I am studying django. > > When I use objects.filter, I want to search various columns. > > Columns to search for are unknown and

Query questions. Please help me.

2019-07-17 Thread 나르엔
Hello, I am studying django. When I use objects.filter, I want to search various columns. Columns to search for are unknown and have been receiving columns to search through checkbox in html. What should I do? Please teach me. It's blocked from below. selectoptions is name in checkbox.

Re: sqlite update on CentOS 7 for latest django version

2019-07-17 Thread Tal
Or is Python's sqlite built into Python, not depending on /usr/bin/sqlite3 at all? Would I have to recompile Python for a newer version of sqlite that django can use? PS. I know I can downgrade django. I'm wondering how complex it is to compile a new version of sqlite for it to use. On

sqlite update on CentOS 7 for latest django version

2019-07-17 Thread Tal
When using the latest django from PyPI in CentOS 7, running "./manage.py runserver" gives an error about sqlite being too old. Since there's no newer sqlite version in the CentOS repos, I tried building sqlite from scratch: curl -L https://www.sqlite.org/2019/sqlite-amalgamation-329.tar.gz

Issue i18n django_language in session

2019-07-17 Thread Oscar Rovira
Hi there, I have a Django site with multi-language support through i18n. The default user's language is set based on the browser headers but users can change it via the regular set_language view. Recently I noticed that the UI is shown in a different language than the one my user is supposed

Re: Running Django 2.2.3 in Apache2

2019-07-17 Thread Ing.Daniel Bojorge
I hope be useful for you https://debsconsultores.blogspot.com/2018/12/deploy-django-21-en-ubuntu-server-1804.html I have class in video in the course in Udemy, all in spanish Dios L@s Bendiga Saludos, [image: --] daniel.bojorge [image: http://]about.me/daniel.bojorge

Make HerokuConnect model my Django custom user model

2019-07-17 Thread 'Elia Gandolfi' via Django users
# I want this Heroku-Connect model to be my app's custom user model. # That means, vendors registered in Salesforce should be able to login with their vendor_code__c as username class Vendor(hc_models.HerokuConnectModel): sf_object_name = 'Vendor__c' vendor_code =

Running Django 2.2.3 in Apache2

2019-07-17 Thread Block QAI
Group, We have been working for days attempting to get Django to run under apache2 on a Ubuntu 18.04 server. Are there ANY clear documentation with steps we ,could leverage to ensure a successful, simple, direct install. Very much appreciate the assistance. -- You received this message

Make an Heroku connect model my app's custom user model

2019-07-17 Thread 'Elia Gandolfi' via Django users
# I want this Heroku-Connect model to be my app's custom user model. # That means, vendors registered in my Salesforce database should be able to login with their vendor_code__c as username class Vendor(hc_models.HerokuConnectModel): sf_object_name = 'Vendor__c' vendor_code =

Django admin application for Android

2019-07-17 Thread Alexandre Guignard
That's cool, thanks  Which langage do You use for the app ? -- 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

Re: Django admin application for Android

2019-07-17 Thread KIKOYO ISAAC
great dude!! On Tue, Jul 16, 2019 at 11:12 PM Derek wrote: > Can you explain more about the GOLD plan - what is it and how much does it > cost? > Monday, 15 July 2019 12:51:58 UTC+2, Jens-Joris Decorte wrote: >> >> Hello Django developers! >> >> Being both a Django developer and a heavy user

Issues while creating virtual environment before installing Django

2019-07-17 Thread Mahesh Kumar
Hi all, I tried to install the Django software in my Laptop command prompt, I have to create(mkvirtualenv myproject) virtual evironment. But as soon as I have entered mkvirtualenv myproject, error is looping on and showling below error. Please try to help me, how to create vritual environment.

Can Django fill in a template based on a custom URL, if the contents of the URL match an item in the database?

2019-07-17 Thread Matvey Kostukovsky
Hi everyone, This might be a noob question, but I've been searching everywhere for almost half a year now, I've read through a huge chunk of the docs, I've gone through many tutorials, read many stack questions & answers, and I still don't feel like I'm any closer to the solution. I did manage

Re: UniqueConstraint raises uncaught IntegrityError in Admin

2019-07-17 Thread Michael Barr
That's what I had to revert to doing, yes. I added logic to the validate_unique() method on the model itself and then updated the query logic manually. On Wednesday, July 17, 2019 at 2:15:52 AM UTC-4, Derek wrote: > > Would it be correct to say that adding validation at model clean level >

Re: Slack community for Django

2019-07-17 Thread Deep Sukhwani
Thank you for acknowledging Nick. Best, Deep S On Wed, Jul 17, 2019, 17:29 Nick Sarbicki wrote: > Cheers for the feedback Deep, > > Sadly given the scale of the current community it would cost up to around > 1.6 million USD per year to use enterprise slack. > > I know some OSS communities

Question: Votes Table with Partitions, BRIN & B-Tree indexes

2019-07-17 Thread Yoo
Hi! For context, I have a votes table that is like a through model of Many-to-many (M2M). I’m using Postgres because BRIN and other stuff. Here’s the table: class UpVote(models.Model): id = models.UUIDField(primary_key=True, default=uuid4, editable=False) post = models.ForeignKey(Post,

Re: Slack community for Django

2019-07-17 Thread Nick Sarbicki
Cheers for the feedback Deep, Sadly given the scale of the current community it would cost up to around 1.6 million USD per year to use enterprise slack. I know some OSS communities have this enabled for free, slack has been approached about this but have sadly declined to give pyslackers the

Re: Slack community for Django

2019-07-17 Thread Deep Sukhwani
Thank you, folks, for the super prompt and really helpful response. *Two points:* 1. It seems we are using the free version of Slack for

Need help on how to proceed: django-rest-auth with custom user model

2019-07-17 Thread pastrufazio
Hi all, I'm writing a backend in Django, I want to use *django-rest-auth*(1) to handle registration/email verification/social auth, the problem is that I need to distinguish between two different users: customer and professional My question: is it better to proceed making *django-rest-auth*

Re: Slack community for Django

2019-07-17 Thread gilwell muhati
Hello *@Deep* Yes there is https://pyslackers.com/web join the *Django Channel * I think we are just used to the* Google Mail Lis*t  *Regards,* *Gilwell Muhati | +254 710 739 116 |* *~~“The mind is its own place and in itself can make a heaven of hell, a hell of heaven…”~~John Milton * On

Re: Slack community for Django

2019-07-17 Thread Nick Sarbicki
Hi Deep, I'm not sure if there is currently a dedicated django community (there was an unofficial one but I believe it was converted into the yellow ant community). We do however have a dedicated python community with a very active Django channel. It's linked on the PSF site here:

Slack community for Django

2019-07-17 Thread Shubham Chauhan
Its a good idea -- 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

Slack community for Django

2019-07-17 Thread Deep Sukhwani
[I have sent this as an email to DSF via Contact Us form, cross-posting it here in case this is a better place to communicate] Hello, A lot of large scale open source projects have a dedicated Slack community, some examples are Kubernetes, Golang, etc. Slack has become defacto communication

Re: UniqueConstraint raises uncaught IntegrityError in Admin

2019-07-17 Thread Derek
Would it be correct to say that adding validation at model clean level would make more sense when using this feature with the admin? On Tuesday, 9 April 2019 15:13:19 UTC+2, Simon Charette wrote: > > No form validation is implemented for UniqueConstraint(condition) yet as > that would require >

Re: Django admin application for Android

2019-07-17 Thread Derek
Can you explain more about the GOLD plan - what is it and how much does it cost? On Monday, 15 July 2019 12:51:58 UTC+2, Jens-Joris Decorte wrote: > > Hello Django developers! > > Being both a Django developer and a heavy user of Django applications, I > found myself accessing the admin