Re: Chat

2019-09-06 Thread carlos
Hola, te recomiendo que uses channels y su tutorial para hacer un chat, recuerda que channels esta soportado por la comunidad de Django, es como el oficial para esto del real time https://channels.readthedocs.io/en/latest/tutorial/index.html saludos On Fri, Sep 6, 2019 at 9:23 AM Ahmed Ishtiaque

Django Apphook on Django cms 3.6.0

2019-09-06 Thread Perceval Maturure
Hi All , I have been battling with the apphooks in integrating my apps for some weeks, in advanced menu I can select the app on the drop down of the cms page but the cms page I hook my app does not display model data. What could be the problem? I’m using Django 1.11.23 and Django cms 3.6.0 Please

Re: Postgre sql problem

2019-09-06 Thread Thomas Lockhart
You need the python-devel package installed for the version of python you are running. - Tom > On Sep 6, 2019, at 12:49 PM, Elmaco7 wrote: > > Hello, I'm trying to use Postresql with my django project, but when i try to > install psycopg2(with this command 'pip3 install psycopg2') this

Re: How to create user registration

2019-09-06 Thread Tosin Ayoola
https://simpleisbetterthancomplex.com/tutorial/2017/02/18/how-to-create-user-sign-up-view.html Here u will get all u need On Sep 6, 2019 12:43, "VIJAY RAJA" wrote: > How to create user registration forms > > -- > You received this message because you are subscribed to the Google Groups >

Re: How to create user registration

2019-09-06 Thread Shirley Nelson
I know how to make user registration. If you want me to tutor you it is $50 per hour paid via PayPal. On Fri, Sep 6, 2019, 7:43 AM VIJAY RAJA wrote: > How to create user registration forms > > -- > You received this message because you are subscribed to the Google Groups > "Django users" group.

how can i update one model field and save that data into an other model

2019-09-06 Thread kevin irankunda
Hi i'm Kevin and i'm new in python and django i want if one between student suggestion and staff suggestion's status == "approved" that data to be sent in appointment model my models are: statuses=[ ('accepted','Approve'), ('denied','deny'), ('canceled','cancel'), ] class

Re: AttributeError 'QuerySet' object has no attribute 'expenses'

2019-09-06 Thread Kean
Ok, Updated to below, and am still getting the same error: def projectdetail(request): projectList = Project.objects.all() projectExpenseDetails = Expense.objects.select_related('project').all() return render(request, 'busprojectdetail.html', {'project': project, 'expense_list':

Re: AttributeError 'QuerySet' object has no attribute 'expenses'

2019-09-06 Thread Kean
Hi Ok, I updated as advised. views.py def projectdetail(request): projectExpenseDetails = Expense.objects.select_related('project').all() return render(request, 'busprojectdetail.html', {'project': project, 'expense_list': projectExpenseDetails}) I get new error Exception Type:

Re: AttributeError 'QuerySet' object has no attribute 'expenses'

2019-09-06 Thread Bhoopesh sisoudiya
def projectdetail(request): projectExpnseDetails = Expense.objects.select_related('project').all() return render(request, 'busprojectdetail.html', {'project': project, 'expense_list':projectExpnseDetails }) On Sat, Sep 7, 2019, 1:43 AM Bhoopesh sisoudiya wrote: > Write this > >

Re: AttributeError 'QuerySet' object has no attribute 'expenses'

2019-09-06 Thread Kean
This is still not working, please can you provide full code, this way it is complete and accurate, and not me guessing? Best, Kean On 6 Sep 2019, at 21:13, Bhoopesh sisoudiya wrote: > Write this > > Expense.objects.select_related('project').all() > > > > On Sat, Sep 7, 2019, 1:37 AM Kean

Re: AttributeError 'QuerySet' object has no attribute 'expenses'

2019-09-06 Thread Bhoopesh sisoudiya
Write this Expense.objects.select_related('project').all() On Sat, Sep 7, 2019, 1:37 AM Kean wrote: > Thanks, > > I updated the view, and now I am getting syntax error. > Please see below. > > views.py > > def projectdetail(request): > project = Project.objects.all() > return

Re: AttributeError 'QuerySet' object has no attribute 'expenses'

2019-09-06 Thread Kean
Thanks, I updated the view, and now I am getting syntax error. Please see below. views.py def projectdetail(request): project = Project.objects.all() return render(request, 'busprojectdetail.html', {'project': project, 'expense_list': project.expenses.all()}) projectDetails =

Re: AttributeError 'QuerySet' object has no attribute 'expenses'

2019-09-06 Thread Bhoopesh sisoudiya
def projectdetail(request): project = Project.objects.all() return render(request, 'busprojectdetail.html', {'project': project, 'expense_list': project.expenses.all()}) According to me by this archive you want expense details of each project Then you write projectDetails =

Re: AttributeError 'QuerySet' object has no attribute 'expenses'

2019-09-06 Thread Kean
Hi, please ignore the manager it is just a naming convention ignore, it if for me to identify tables, if i have 50 table, I want to be able to know which model is holding which object information and for what I need it. Please use below, I have removed the # information to reduce confusion.

Re: AttributeError 'QuerySet' object has no attribute 'expenses'

2019-09-06 Thread Bhoopesh sisoudiya
Hi kean, Category and Expense is not Manager model this is only model class. Thanks Bhoopesh Kumar On Sat, Sep 7, 2019, 1:15 AM Bhoopesh sisoudiya wrote: > Ok No problem but > why you want Manager? > > Please send me answer > > Thanks > Bhoopesh sisoudiya > > On Sat, Sep 7, 2019, 1:06 AM

Postgre sql problem

2019-09-06 Thread Elmaco7
*Hello, I'm trying to use Postresql with my django project, but when i try to install psycopg2(with this command 'pip3 install psycopg2') this problem appears:* Collecting psycopg2 Using cached

Re: AttributeError 'QuerySet' object has no attribute 'expenses'

2019-09-06 Thread Bhoopesh sisoudiya
Ok No problem but why you want Manager? Please send me answer Thanks Bhoopesh sisoudiya On Sat, Sep 7, 2019, 1:06 AM Kean wrote: > Hi Bhoopesh > Thanks for this, please can you put it into the context of my specific > model setup, so I get it right and understand. > This will be easier for me

Re: how to pass user input into raw sql query ?

2019-09-06 Thread Bhoopesh sisoudiya
Hi Lev dev, Write your query like this sqlRawQuery = "Your query ... Field name= {}".format (userInput) Thanks Bhoopesh Kumar On Fri, Sep 6, 2019, 4:29 PM leb dev wrote: > i have a django project that is connected to sql server database i am > trying to write a *select query * #convert

Re: AttributeError 'QuerySet' object has no attribute 'expenses'

2019-09-06 Thread Kean
Hi Bhoopesh Thanks for this, please can you put it into the context of my specific model setup, so I get it right and understand. This will be easier for me as this approach is causing me some other errors, when i try to apply it. Best wishes, Kean On 6 Sep 2019, at 20:19, Bhoopesh sisoudiya

Re: How to write efficient Django ORM when the database you are working has no relationship defined(No foreign key )

2019-09-06 Thread Bhoopesh sisoudiya
Hi yogesh, First: you create index on columns which you want use in ORM. Second: No need to create index on datetime field. Third: Use join by ORM. No need to key-relationship in database. Thanks Bhoopesh sisoudiya On Fri, Sep 6, 2019, 5:14 PM Yogesh Agarwal wrote: > Hiii guys, Currently I

Re: AttributeError 'QuerySet' object has no attribute 'expenses'

2019-09-06 Thread Bhoopesh sisoudiya
Hi Kean, Write manager like this ,I give you reference from django.db import models # First, define the Manager subclass. class BhoopeshBookManager(models.Manager): def get_queryset(self): return super(BhoopeshBookManager, self).get_queryset().filter(author='Bhoopesh') # Then hook

Re: AttributeError 'QuerySet' object has no attribute 'expenses'

2019-09-06 Thread Kean
Hi, Thanks for the help. The header for each model is # out, so is not read when the code parsed, it is just to help me identify the models. I only have 3 models Project, Category and Expense. Best wishes, Kean On 6 Sep 2019, at 20:04, Bhoopesh sisoudiya wrote: > Hi kean, > Please

Re: AttributeError 'QuerySet' object has no attribute 'expenses'

2019-09-06 Thread Bhoopesh sisoudiya
Hi kean, Please check Expenses Class is not Manager Please make Manager Class. Thanks Bhoopesh sisoudiya On Sat, Sep 7, 2019, 12:20 AM Kean wrote: > Hi, > > New to Django. when navigating to the reqired view, I get the error above. > > urls.py > >

AttributeError 'QuerySet' object has no attribute 'expenses'

2019-09-06 Thread Kean
Hi, New to Django. when navigating to the reqired view, I get the error above. urls.py path('businesslogin/businessadmin/busproject', views.projectdetail, name='projectdetail'), views.py def projectdetail(request): project = Project.objects.all() return render(request,

Re: Chat

2019-09-06 Thread Ahmed Ishtiaque
This may help. https://github.com/dibs-devs/chatter Best, Ahmed On Fri, Sep 6, 2019 at 7:44 AM samuel lopez wrote: > Saludos, alguien me puede dar una breve explicación o si hay un paquete o > algo para poder agregarle una aplicación de chat a mi proyecto en Django? > > -- > You received this

Re: How to create user registration

2019-09-06 Thread Kasper Laudrup
On September 6, 2019 10:09:11 AM GMT+02:00, VIJAY RAJA wrote: >How to create user registration forms > >-- >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

Re: Weird django.urls.exceptions.NoReverseMatch: 'review' is not a registered namespace

2019-09-06 Thread Julien Enselme
Weird. It looks correct to me. I'm out of ideas, sorry. Julien Enselme Développeur chez BureauxLocaux Le jeu. 5 sept. 2019 à 11:55, Pasquale a écrit : > On 04/09/19 10:24, Julien Enselme wrote: > > Did you do the reverse with 'reviews:detail'? > > >>> > reverse("review:detail") > > Traceback

Re: Chat

2019-09-06 Thread Mario R. Osorio
Tienes muchas opciones: - TUTORIAL: Real-time chat with Django, Twisted and WebSockets – Part 1 - Creating a chat with Django Channels

How to filter using foreign key and render on HTML

2019-09-06 Thread Isaac Ndutumo
Am developing a web app where i want to view per client details view.py class DirectorListView(ListView): model = Director paginate_by = 10 def get_queryset(self): query = self.request.GET.get('q') if query: search =

Re: How to create user registration

2019-09-06 Thread Suraj Thapa FC
Check out this https://github.com/SurajFc/Django-DRF-Boilerplate-with-otp-verification On Fri, 6 Sep, 2019, 5:14 PM VIJAY RAJA, wrote: > How to create user registration forms > > -- > You received this message because you are subscribed to the Google Groups > "Django users" group. > To

Need help in receiving first 500 bytes of an incoming file from client-side and after it is the download must be resumed.

2019-09-06 Thread Milind Yadav
Hi, I am trying to receive the first 500 bytes of a file coming from client-side before it gets completely downloaded onto the server. I need to compute the hash value of the first 500 bytes and compare with hashes in database. If no match is found then resume the download i.e. remaining

Software Engineer, Python/Django job position open

2019-09-06 Thread Gio M.
Hi everyone, at DAO Maker (a cryptocurrency incubator company) we are looking for a full time remote (with the option to work in our offices in Prague) Python/Django back-end developer with 3+ years experience and passionate about writing fast, efficient software in Python. Please read the

How to create user registration

2019-09-06 Thread VIJAY RAJA
How to create user registration forms -- 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 view this discussion on the

Re: how to display retrieved data from database using django

2019-09-06 Thread Gajanan Kathar
You need to intialize cursor object using cursor factory. e.g.: cursor = conn.cursor(cursor_factory=psycopg2.extras.NamedTupleCursor) then used this cursor object to access value with . operator. On Fri, Sep 6, 2019 at 12:15 AM leb dev wrote: > i have a django project that is connected to

Chat

2019-09-06 Thread samuel lopez
Saludos, alguien me puede dar una breve explicación o si hay un paquete o algo para poder agregarle una aplicación de chat a mi proyecto en Django? -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and stop

How to write efficient Django ORM when the database you are working has no relationship defined(No foreign key )

2019-09-06 Thread Yogesh Agarwal
Hiii guys, Currently I am working on a Database whose structure is very bad and I want to write efficient Django ORM where two or more models are involved(similar to the joining of two or more table in SQL) and we can write the most efficient ORM to make it work fast? -- You received this

how to pass user input into raw sql query ?

2019-09-06 Thread leb dev
i have a django project that is connected to sql server database i am trying to write a *select query * #convert the Django ORM into SQL query print("sql query = ",FilterQuery.query) *select * from table name where filed name = user input * *can anyone help me with this?* -- You

display vakues in table in template

2019-09-06 Thread leb dev
i have a django project that is connected to SQL Server i tried to retrieve data from the database. if i try to display all the data it run correct and display all the values. but if i try to display the data in an **html table** it doesn't display anything. views.py === def