Search Results
|
Post |
Author |
Forum |
Replies |
Views |
Posted
[asc]
|
|
|
Thread: Django and AWS S3 media storage
Post: Django and AWS S3 media storage
Hi,
I have an app that will upload photos and videos but i keep getting server error 500. I am not sure how to configure the AWS S3 for media correctly. Here is what I have:
I have aws folder that h... |
|
rwahdan |
Web Scraping & Web Development |
0 |
1,432 |
Mar-06-2022, 08:47 AM |
|
|
Thread: django - add l<a> tag - render_to_string
Post: django - add l<a> tag - render_to_string
Hi,
i have the follwoing code in view.py:
subject = "Thank you for your payment!"
template = render_to_string('cart/email_template2.html', {'name': request.user.first_name,
'trans... |
|
rwahdan |
Web Scraping & Web Development |
1 |
1,965 |
Jan-06-2022, 05:48 PM |
|
|
Thread: send mail is freezing
Post: send mail is freezing
Hi
I am trying to send an email but it is freezing and if i refresh the page everything is working except for the email part, it is not sent.
from django.core.mail import EmailMessage
from djan... |
|
rwahdan |
Web Scraping & Web Development |
0 |
1,437 |
Jan-02-2022, 09:06 AM |
|
|
Thread: django - reset password template
Post: RE: django - reset password template
I found the solution but can someone explain please:
path('reset/<uidb64>/<token>/',
auth_views.PasswordResetConfirmView.as_view(template_name='EmailRegs/password_reset_confirm.html'... |
|
rwahdan |
Web Scraping & Web Development |
2 |
2,013 |
Dec-26-2021, 06:42 PM |
|
|
Thread: django - reset password template
Post: django - reset password template
Hi,
I have the following code but for some reason on the paths don't work from the urls file!
from django.urls import path
from . import views
from .views import UserEditView, PasswordsChangeView
fr... |
|
rwahdan |
Web Scraping & Web Development |
2 |
2,013 |
Dec-26-2021, 11:37 AM |
|
|
Thread: register the user as staff member - django
Post: register the user as staff member - django
Hi,
I came across this code and it is registering the user but without having the user part of staff members. How to make that happened?
def register_user(request):
if request.method == "POST":
f... |
|
rwahdan |
Web Scraping & Web Development |
0 |
1,496 |
Dec-24-2021, 03:08 PM |
|
|
Thread: Registration Form Fields
Post: Registration Form Fields
Hi
In django there are 3 fields for registration form which are username, password1 and password2.
Here is what I need:
1. After registration I need the user to br assigned as a staff member.
2. Is... |
|
rwahdan |
Web Scraping & Web Development |
2 |
1,907 |
Dec-23-2021, 03:06 PM |
|
|
Thread: floats 2 decimals
Post: floats 2 decimals
Hi
I have a problem with total that is float and i have tried to make it 2 decimal but sometimes it is working and sometimes it is not working.
@property
def get_cart_total(self):
orderitems = se... |
|
rwahdan |
General Coding Help |
3 |
1,646 |
Dec-19-2021, 05:33 AM |
|
|
Thread: numpy adding columns
Post: RE: numpy adding columns
I just a solution but if anyone can think of a better way please share...
import numpy as np
numbers = np.array([
[2,4],
[8,10],
[50,100]
])
add = numbers[:,0] + numbers[:,1]
add =... |
|
rwahdan |
Data Science |
4 |
2,350 |
Sep-21-2021, 06:26 PM |
|
|
Thread: numpy adding columns
Post: RE: numpy adding columns
(Sep-21-2021, 03:56 PM)jefsummers Wrote: Not sure if this is what you are looking for, but here goes
import numpy as np
numbers = np.array([
[2,4],
[8,10],
[50,100]
])
add = numbe... |
|
rwahdan |
Data Science |
4 |
2,350 |
Sep-21-2021, 04:04 PM |
|
|
Thread: numpy adding columns
Post: numpy adding columns
Hi,
I am trying to add columns to a numpy array but i am getting an error
import numpy as np
numbers = np.array([
[2,4],
[8,10],
[50,100]
])
add = numbers[:,0] + numbers[:,1]
mul = ... |
|
rwahdan |
Data Science |
4 |
2,350 |
Sep-21-2021, 03:33 PM |
|
|
Thread: numpy 2-dimentional
Post: numpy 2-dimentional
I am trying to learn numpy and I am trying to print some data as shown below:
import numpy as np
names = np.array([["Rami", "Taher", "Wahdan"],["First", "Middle", "Last"]])
print(names[[0,0],[1,0]])... |
|
rwahdan |
Data Science |
3 |
2,114 |
Sep-11-2021, 04:54 PM |
|
|
Thread: redirect to page
Post: redirect to page
I have a site that has some free items to show and one link in the menu to show the paid items. When I click the link I want to be redirected to a page in a different project. Is it possible?
Example... |
|
rwahdan |
Web Scraping & Web Development |
1 |
1,786 |
Aug-15-2021, 03:49 PM |
|
|
Thread: running project from github
Post: running project from github
Hi
I downloaded a project from GitHub so I can learn more about Django. What are the steps that needs to be done to run the project? |
|
rwahdan |
Web Scraping & Web Development |
2 |
3,775 |
Aug-13-2021, 03:43 PM |
|
|
Thread: Django - slide duration
Post: RE: Django - slide duration
(Aug-05-2021, 03:09 PM)ndc85430 Wrote: Did you already look at the docs for Bootstrap's carousel (https://getbootstrap.com/docs/4.0/components/carousel/), trying things out? You'll of course need to... |
|
rwahdan |
Web Scraping & Web Development |
4 |
2,892 |
Aug-06-2021, 12:11 AM |
|
|
Thread: Django - slide duration
Post: RE: Django - slide duration
(Aug-04-2021, 04:10 PM)ndc85430 Wrote: Django doesn't do anything in the browser - it's a server-side framework. Looking at the CSS classes in your template, I notice that one of the classes on line... |
|
rwahdan |
Web Scraping & Web Development |
4 |
2,892 |
Aug-05-2021, 02:36 PM |
|
|
Thread: Django - slide duration
Post: Django - slide duration
Hi,
I am starting to learn Django and I have been trying to see where to look in css or js folders to change the duration of slideshow in the site.
<section class="welcome-area">
<!-- W... |
|
rwahdan |
Web Scraping & Web Development |
4 |
2,892 |
Aug-04-2021, 03:32 PM |
|
|
Thread: remove file from current project
Post: remove file from current project
Hi,
I created a file and after done it is opened and saved by user. I then need to delete from my current directory in my project. I tried the remove method but not working!
file = str(pdf_file_name... |
|
rwahdan |
GUI |
2 |
2,317 |
Jul-24-2021, 03:02 PM |
|
|
Thread: load sqlite3 data into pdf
Post: RE: load sqlite3 data into pdf
I did use the dialog like this:
saveFilePath = filedialog.asksaveasfile(mode='w', title="Save the file", defaultextension=".pdf",
initialfile=pdf_file_name, filetypes=(... |
|
rwahdan |
GUI |
5 |
4,404 |
Jul-24-2021, 01:36 PM |
|
|
Thread: load sqlite3 data into pdf
Post: RE: load sqlite3 data into pdf
(Jul-23-2021, 07:58 PM)Larz60+ Wrote: use pandas.
Here's an example: https://newbedev.com/export-pandas-dataf...ing-pythonThank you very much this worked for me. Now, I have created the pdf and it i... |
|
rwahdan |
GUI |
5 |
4,404 |
Jul-24-2021, 12:19 PM |