access a given URL
On 7 Sep 2019, at 21:46, Mclaren Sunday wrote:
> What are you trying to do?
>
> On Sat, 7 Sep 2019 20:30 Kean, wrote:
> Hi,
>
> New to Django, Have an issue. the table exists and the view references the
> table however, I still get 404 message.
&
n anyone help, with getting the url to connect and resolving this
error?
Best
Kean
--
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+
Hi,
removing did, not work, still getting same error.
Welcome any other help from the wider community in reference to this issue.
best,
Kean
On 6 Sep 2019, at 22:26, Bhoopesh sisoudiya wrote:
> Try after removing related_name='expenses' from Expenses model.
>
> On Sat, S
#x27;: project,
'expense_list': projectExpenseDetails})
Exception Type: NameError
Exception Value:
name 'project' is not defined
Exception Location:
/Users/ProductionEnv/Desktop/test/test1/dev/core/views.py in projectdetail,
line 239
Best,
Kean
On 6 Sep 2019, at 21:
etails})
I get new error
Exception Type: NameError
Exception Value:
name 'project' is not defined
Exception Location:
/Users/ProductionEnv/Desktop/test/test1/dev/core/views.py in projectdetail,
line 238
Please advise?
Best,
Kean
On 6 Sep 2019, at 21:19, Bhoopesh sisoudiya wro
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
es.all()})
projectDetails = Project.objects.select_related(Project).values(select
column).all()
please advise how to correct?
Best,
Kean
On 6 Sep 2019, at 21:01, Bhoopesh sisoudiya wrote:
> def projectdetail(request):
> project = Project.objects.all()
> return render(requ
x_digits=8, decimal_places=2)
category = models.ForeignKey(Category, on_delete=models.CASCADE)
On 6 Sep 2019, at 20:45, Bhoopesh sisoudiya wrote:
Best wishes,
Kean
> Ok No problem but
> why you want Manager?
>
> Please send me answer
>
> Thanks
> Bhoopesh sisoudiya
>
&
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
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,
>
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, 'busprojectdet
ystem lib. Not
> recommended.
>
>
> When you works with venv, you need yo install into this virtal enviorment.
> How?
> 1.- activate venv
> 2- pip install
>
> And go!
>
> El dg., 1 de set. 2019, 23:26, Kean va escriure:
> Hi Gil,
>
> Thank you for t
Sep 2019, at 04:13, Rax Otero wrote:
> Hi,
> Can I see how you structured your table?
>
> Best wishes,
> Rax
>
> On Sat, Aug 17, 2019 at 1:15 AM Kean wrote:
> Hi,
>
> Ive created a table which returns all my data in my.html template.
>
> However, the proble
1.- activate venv
> 2- pip install
>
> And go!
>
> El dg., 1 de set. 2019, 23:26, Kean va escriure:
> Hi Gil,
>
> Thank you for the response.
> In the first step, I closed the venv, then installed river, (please see
> process below)
> This is when I get the is
; If you are using venv, pip3 with venv activated
>
>
> Bests djangos,
>
>
>
>
> Missatge de Kean del dia dg., 1 de set. 2019 a les 21:56:
> Hi,
>
> New to Django, but can't seem to get django to run the module.
> The process I followed:
>
> P
t
> want to read.
>
> If
>
> su 1. syysk. 2019 klo 1.52 Kean kirjoitti:
> Hi,
>
> New to Django, appreciate the guidance,
>
> I'm looking to style template so both header and data records are note
> wrapped.
> please see current setup.
>
> Please can
Hi,
New to Django, but can't seem to get django to run the module.
The process I followed:
Process.
1) Closed venv
2) shell: pip3 install django-river
3) Add 'river' to Installed_apps in settings.py
Please can anyone advise if they have seen this issue before and how
resolve
Hi,
New to Django, appreciate the guidance,
I'm looking to style template so both header and data records are note
wrapped.
please see current setup.
Please can anyone help with the template code, appreciate, it's not quite
django, but more bootstrap4 django.
Best,
K
--
You received thi
Hi,
New to Django.
I've created a registration form which inherits from a User form.
The issue is none of the validators are working. e.g reporting to user
password miss-match, or any other error if user enters data incorrect to
validation.
The form simply validates with errors and redirect user
Thank you, this resolved issue.
best,
K
On 27 Aug 2019, at 17:30, Ajeet Kumar Gupt wrote:
> Hi Kean,
>
> First need to close the proper tags
>
> I seen your code form tag is not closed properly. Once first form tag closed
> than write the code csrf token
>
> On Tu
phone_number = form.cleaned_data['phone_number']
> user.save()
> return redirect('/login/')
> # Login the user
> #login(request, user)
> #def user_login(request):
> # redirect to
Hi Luca,
your suggestion worked, thank you.
many thanks to the community for the ongoing advice and help, it really makes a
huge and valuable difference.
Best,
K
On 26 Aug 2019, at 20:59, Luca Mazzilli wrote:
> Kean,
> Have you tried removing the initial slash inside the path?
>
&g
to this.
Best,
K
On Mon, 26 Aug 2019 at 20:17, Gil Obradors wrote:
> admin/ urls are working fine?
> if you put print('hello0) at first line inside cregister, you see at the
> console?
>
> If yes the problem is in redirects
>
>
> Missatge de Kean del dia dl.
min/', admin.site.urls),
path('', include('core.urls')),
]
Best,
K
On 26 Aug 2019, at 18:29, Gil Obradors wrote:
> Hi!
>
> Can you paste views.cregister
> and projectname/urls.py ?
>
>
>
> Missatge de Kean del dia dl., 26 d’ag. 2019 a le
Hi,
I'm new to Django. I created several urls, in urls.py, however, when I try
to navigate to the URL it says page not found.
Page not found (404)
Request Method: GET
Request URL: http://127.0.0.1:8000/register
Using the URLconf defined in bnt.urls, Django tried these URL patterns, in
this ord
Hi,
New to Django.
I've created a user registration form, the issue is it does not run
validations or report errors with the data entered. It simply routes to the
redirect url.
Please can I ensure the user sees the correct error in a post case scenari
for both a django form, and customsied djan
Ok thanks is there a way to call all objects, as this is more user friendly
and efficient when potentially editing many object fields?
On Sun, 18 Aug 2019 at 18:05, Daniel Roseman wrote:
> You can't pass *all* the objects to the form. You have to get the specific
> one you want to edit and pass
Hi,
New to Django but trying to stick with it.
I have created a model form, which creates ok.
I am trying to edit records. I have the following, but keep getting the
QuerySet object has no attribute '_meta' in the browser.
my views.py
def editbusiness(request):
data = models.Businessownercrea
Hi Salimon,
Thank you for the code and help.
When I update to your code I get the following error in the browser
Exception Type: AttributeError
Exception Value:
'ModelFormOptions' object has no attribute 'concrete_fields'
Im not sure why
my models.py
class Businessownercreate(models.M
Hi,
New to Django, struggling at every point, but still learning.
I have created an edit form, however when I run the edit, the below
response is returned to all object fields in the form, allbeit suffix
varies.
Please see my views.py
def editbusiness(request):
data = Businessownercreate.ob
i will try to solve your
> conditions.
>
>
> Thanks
>
> On Sat, 17 Aug 2019, 01:58 Kean, wrote:
> Hi,
>
> New to Django, and am really really struggling which something maybe others
> may find really easy..
>
> I've created a custom database model, and the subse
Hi,
New to Django, and am really really struggling which something maybe others
may find really easy..
I've created a custom database model, and the subsequent modelform template
to enable creating a record and storing to database.
However I am struggling to create two instances, where the user
Hi,
Ive created a table which returns all my data in my.html template.
However, the problem is the second record tags onto the end of the first,
instead of wrapping,
i.e/
pk Name Surname pk Name Surname
1 John Smith 2Jane Smith
instead of/
PKName Surname
;
>> This is normal in the view.py file is what appears. Now if you want to
>> use the data in the template You must use a loop to browse the items. I
>> will send you a Github link or I will better explain.
>>
>> Le jeu. 15 août 2019 à 20:49, Kean a écrit :
>&
'data': data,
> }
>
>
> in Your template use:
>
>
> data.name,
> data.broname
> ...
>
>
>
> Le jeu. 15 août 2019 à 19:56, Kean a écrit :
> Hi, N’BE,
>
> The code you sent, when i apply using my model and substitute the objects fo
ontext)
>
>
>
>
> Replaces Model_1 ... Model_6 by your models you want to send in your view.
>
>
> Invite your template use data_1,..., data_6
>
>
>
> Le jeu. 15 août 2019 à 19:28, Kean a écrit :
> Hi N’BE,
>
> If I have 6 objects in my
:21, N'BE SORO wrote:
> you want to send what model on your view?
>
> Le jeu. 15 août 2019 à 19:04, Kean a écrit :
> Hi N’BE,
>
> Thanks, the code worked, the problem is I wanted to use the context to return
> all objects in the database to
> the defined html vi
equest, 'editremovebusiness.html', context)
>
> Le jeu. 15 août 2019 à 18:45, RONAK JAIN a écrit :
> Hey Kean,
>
> What is the object here?
>
>
>
>
> On Thu, Aug 15, 2019 at 11:37 PM Kean wrote:
> Hi,
>
> I have written the following code in vi
Hi,
I have written the following code in views.py
def editremovebusiness(request):
data = Businessownercreate.objects.all()
context = {
'Creator': obj.Creator,
'Micro_Small_Medium': obj.Micro_Small_Medium,
}
return render(request, 'editremovebusiness.html', context={"data":data})
when I save it
Ive sent Teamviewer details
On 14 Aug 2019, at 20:18, RONAK JAIN wrote:
> So you can conect with me on hangout...
>
> On Thu, 15 Aug 2019, 00:47 RONAK JAIN, wrote:
> I need your id and password
>
> On Thu, 15 Aug 2019, 00:45 Kean, wrote:
> HI Ronak,
>
>
HI Ronak,
Ok, please can you guide me through how to do this, I have team viewer?
Thanks,
Kean
On 14 Aug 2019, at 20:12, RONAK JAIN wrote:
> Okay, so please conect with me on teamviewer...
>
> On Thu, 15 Aug 2019, 00:23 Kean, wrote:
> Hi,
>
> closed down instance django
, line 383
Python Executable: /Users/ProductionEnv/Desktop/prj1/project/bin/python3
Python Version: 3.7.4
So when trying to access the table, I get the above error messages.
Is there another step for me to undertake to resolve?
Best,
K
On 14 Aug 2019, at 19:53, Kean wrote:
>
Hi,
closed down instance django running
deleted db.sqlite3
run python3 manage.py makemigrations
run python3 manage.py migrate
all exceptions were handled and migrate file created.
checked in admin on ‘myowndbase'…error still appears.
Best,
On 14 Aug 2019, at 19:35, Tosin Ayoola wrote:
> d
mine, i am new to django, it really needs a django
expert to weigh in..
Best,
K
On 14 Aug 2019, at 19:18, RONAK JAIN wrote:
> Hey, could you delete your migrations files and again try to create
> makemigrations and migrate...
>
>
>
> Thanks
>
> On Wed, Aug 14, 2019
t d
> main cause of diz type of errors
>
> On Aug 14, 2019 18:32, "Kean" wrote:
> Hi,
>
> I'm new to django and python.
>
> I created a database, but Every time I access my database on the backend, I
> get the no such column exists error.
> I cant
Hi,
New to Django, I'm trying to create a form which means user can update in
the browser and it gets stored in the database, however my form wont appear
in the browser.
please see setup:
URLS.py
path('Business register/Business management/Admin/Add new business',
views.addnewbusiness, name
the error.
Im using the sqlite3 db with version django version 2.2.3
Please can anyone help with ID, root cause and fix?
Best,
Kean
--
You received this message because you are subscribed to the Google Groups
"Django users" group.
To unsubscribe from this group and stop receiving ema
Hi,
New to Django for the expression below, i get
def breg(request):
form = UserCreationForm()
return render(request=request, template_name="source/breg.html",
{'forms':form})
I get the following error
SyntaxError: positional argument follows keyword argument
Please can anyone help?
Best,
Hello,
Im trying to create a redirect where after the user has created a login,
and saved they are redirected to a sub.url
i.e. Business registers, at Business register.url and is redirected to
business register/business admin.url
my views.py
def Business(request):
if request.method == "POST"
Hi Mike,
thank you for the heip,
I tried the relative path (in main/urls.py) you provided and it threw up
errors.
the existing reference I have seems stable, please see below
path('tinymce/', include('tinymce.urls')),
I have pip3 installed django-tinymce4-lite.
What is odd, is if i run the
Hi Sam,
Thanks added tinymce to apps as recommended, but still getting the same
error
Best,
K
On Sun, 4 Aug 2019 at 15:06, Sam W wrote:
> Add it to the installed apps
>
> INSTALLED_APPS = (
> ...
> 'tinymce',
> )
>
> --
> You received this message because you are subscribed to the Go
Hi,
Im trying to improve text field with a text editor in an app i created with
django.
Installed tinymce4-lite using pip3 into my virtaulenv.
updates apps in system.py with 'tinymce'
mapped url in project settings 'path('tinymce/', include('tinymce.urls')),
but still get error ModuleNotFoundE
Hi,
Im new to django, im trying to create a workflow, whereby a customer
creates an RFQ, this flow to a contractor, who can
then accept or decline the quote plus add quote price for accepted quote,.
On return flow, the customer can agree quote,
which turns into order and flows back to contractor
Hi,
Django keeps reporting the following,
OperationalError at /admin/setupcont/contractor/add/
table setupcont_contractor has no column named MSMe_bus
Request Method: POST
Request URL: http://127.0.0.1:8000/admin/setupcont/contractor/add/
Django Version: 2.2.3
Exception Type: OperationalError
9 1:35 am, Kean wrote:
> > Hi .
> >
> > Please can anyone refer me to a good source to learn how to write a
> > programme which supports document creation, flow,
> > conversion, management and tracking between parties?
>
> https://djangopackages.org/grids/g
Hi .
Please can anyone refer me to a good source to learn how to write a
programme which supports document creation, flow,
conversion, management and tracking between parties?
Best,
K
--
You received this message because you are subscribed to the Google Groups
"Django users" group.
To unsub
Hi James,
Yes this worked. Thanks.
Best,
K
On 28 Jul 2019, at 19:45, James Schneider wrote:
>
> On Sun, Jul 28, 2019, 10:54 AM Kean wrote:
> Hi Chetan
>
> pls see setup below
>
> It looks like you may have copied in the ellipses (...) from the example.
> Remove t
On Sun, Jul 28, 2019 at 3:58 PM Kean Dumba wrote:
> Hi,
>
> I was writing some code in sublime text for my django app.
> and my python session suspended after migrate. now i'm not able to run django
> or venv,
> the error below is what i receive.
>
> keans-air:pr
Hi Chetan
pls see setup below settings.py
This is copied from
https://django-allauth.readthedocs.io/en/latest/installation.html
Please can clarify in this context?
Best,
K
On 28 Jul 2019, at 18:46, Chetan Ganji wrote:
> AUTHENTICATION_BACKENDS = ['django.contrib.auth.backends.ModelBac
a virtual environment was active and resolved it by
> deactivating it and creating a new virtual environment.
> Not sure what was the cause but I suspect it had something to do with
> updating to MacOS Mojave.
>
> -Juhana
>
>
> On Sun, Jul 28, 2019 at 5:58 PM Kean Dumba wrote:
&
Hi,
I was writing some code in sublime text for my django app.
and my python session suspended after migrate. now i'm not able to run
django or venv,
the error below is what i receive.
keans-air:project ProductionEnv$ python3 -m venv project
dyld: Library not loaded: @executable_path/../.Python
, espevialk
to us ‘newbs’ who have no programming experience.
Big Thank you to the django and python community, it is valued.
Best,
Kean
On Fri, 26 Jul 2019 at 22:34, Aldian Fazrihady wrote:
> Try increasing client_max_body_size. For example, ```client_max_body_size
> 75M```
>
Thank you for the direction Jani, will look to these forums and reading
materials.
On 26 Jul 2019, at 18:32, Jani Tiainen wrote:
> #django irc
--
You received this message because you are subscribed to the Google Groups
"Django users" group.
To unsubscribe from this group and stop receiving
63 matches
Mail list logo